movieplayer: fix eof-handling for non-coolstream platforms; thx to Satbaby

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5ba724d65a
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-23 (Mon, 23 Oct 2017)

Origin message was:
------------------
- movieplayer: fix eof-handling for non-coolstream platforms; thx to Satbaby

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-10-23 14:50:01 +02:00
parent 51c1805d41
commit 63f71f8e21

View File

@@ -938,6 +938,7 @@ void* CMoviePlayerGui::bgPlayThread(void *arg)
#if 0 #if 0
printf("CMoviePlayerGui::bgPlayThread: position %d duration %d (%d)\n", mp->position, mp->duration, mp->duration-mp->position); printf("CMoviePlayerGui::bgPlayThread: position %d duration %d (%d)\n", mp->position, mp->duration, mp->duration-mp->position);
#endif #endif
#if HAVE_COOL_HARDWARE
if (pos == mp->position) if (pos == mp->position)
eof++; eof++;
else else
@@ -948,6 +949,7 @@ void* CMoviePlayerGui::bgPlayThread(void *arg)
chidused = true; chidused = true;
break; break;
} }
#endif
pos = mp->position; pos = mp->position;
} }
bgmutex.lock(); bgmutex.lock();