mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
gui/movieplayer.cpp: lower delay at the EOF for list play or repeat mode enabled
This commit is contained in:
@@ -818,9 +818,9 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
|||||||
#endif
|
#endif
|
||||||
/* in case ffmpeg report incorrect values */
|
/* in case ffmpeg report incorrect values */
|
||||||
int posdiff = duration - position;
|
int posdiff = duration - position;
|
||||||
if ((posdiff > 0) && (posdiff < 1000) && timeshift == TSHIFT_MODE_OFF)
|
if ((posdiff > 0) && (posdiff < 2000) && timeshift == TSHIFT_MODE_OFF)
|
||||||
{
|
{
|
||||||
int delay = (filelist_it != filelist.end()) ? 5 : 10;
|
int delay = (filelist_it != filelist.end() || repeat_mode != REPEAT_OFF) ? 5 : 10;
|
||||||
if (++eof > delay) {
|
if (++eof > delay) {
|
||||||
at_eof = true;
|
at_eof = true;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user