From 178582afb05a75f14c653a54357c7925747ac2bd Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 29 Sep 2014 18:08:58 +0400 Subject: [PATCH] gui/movieplayer.cpp: fix stop and EOF, if suddenly we get position == duration --- src/gui/movieplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 9c4f60353..bac4fd8c9 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -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) {