mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
gui/movieplayer.cpp: dont auto-stop, if duration or position invalid
This commit is contained in:
@@ -500,7 +500,9 @@ void CMoviePlayerGui::PlayFile(void)
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("CMoviePlayerGui::PlayFile: speed %d position %d duration %d (%d, %d%%)\n", speed, position, duration, duration-position, file_prozent);
|
printf("CMoviePlayerGui::PlayFile: speed %d position %d duration %d (%d, %d%%)\n", speed, position, duration, duration-position, file_prozent);
|
||||||
#endif
|
#endif
|
||||||
if (duration - position < 1000 && !timeshift)
|
/* in case ffmpeg report incorrect values */
|
||||||
|
int posdiff = duration - position;
|
||||||
|
if ((posdiff > 0) && (posdiff < 1000) && !timeshift)
|
||||||
{
|
{
|
||||||
/* 10 seconds after end-of-file, stop */
|
/* 10 seconds after end-of-file, stop */
|
||||||
if (++eof > 10)
|
if (++eof > 10)
|
||||||
|
Reference in New Issue
Block a user