gui/movieplayer.cpp: lower delay at the EOF for list play or repeat mode enabled

Origin commit data
------------------
Branch: ni/coolstream
Commit: fa780d6086
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-26 (Fri, 26 Sep 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2014-09-26 10:01:03 +04:00
parent 947ac39bbe
commit e504f9894d

View File

@@ -818,9 +818,9 @@ void CMoviePlayerGui::PlayFileLoop(void)
#endif
/* in case ffmpeg report incorrect values */
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) {
at_eof = true;
break;