mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user