mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
gui/movieplayer.cpp: fix stop and EOF, if suddenly we get position == duration
Origin commit data
------------------
Commit: 178582afb0
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-29 (Mon, 29 Sep 2014)
This commit is contained in:
@@ -824,7 +824,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
#endif
|
||||
/* in case ffmpeg report incorrect values */
|
||||
int posdiff = duration - position;
|
||||
if ((posdiff > 0) && (posdiff < 2000) && timeshift == TSHIFT_MODE_OFF)
|
||||
if ((posdiff >= 0) && (posdiff < 2000) && timeshift == TSHIFT_MODE_OFF)
|
||||
{
|
||||
int delay = (filelist_it != filelist.end() || repeat_mode != REPEAT_OFF) ? 5 : 10;
|
||||
if (++eof > delay) {
|
||||
|
Reference in New Issue
Block a user