movieplayer: show subtitles for at least 1.5 seconds (#11)

SRT subtitles from the web often have split-second end times,
making it very hard to read the text in time.

Origin commit data
------------------
Commit: c732a93eb0
Author: Hendi <hendi48@freenet.de>
Date: 2021-05-09 (Sun, 09 May 2021)
This commit is contained in:
Hendi
2021-05-09 21:04:09 +02:00
committed by vanhofen
parent 69b570ff42
commit 467bc14e43

View File

@@ -3298,7 +3298,7 @@ void CMoviePlayerGui::showSubtitle(neutrino_msg_data_t data)
for (unsigned i = 0; i < subtext.size(); i++)
g_Font[SNeutrinoSettings::FONT_TYPE_SUBTITLES]->RenderString(x[i], y[i], sw, subtext[i].c_str(), COL_MENUCONTENT_TEXT);
end_time = sub->end_display_time + time_monotonic_ms();
end_time = std::max(sub->end_display_time, 1500u) + time_monotonic_ms();
}
avsubtitle_free(sub);
delete sub;