fix play stop on cst after hd51 merge

This commit is contained in:
Jacek Jendrzej
2017-12-23 17:56:56 +01:00
parent 335afa7938
commit 2eb1bb1cf5

View File

@@ -1664,9 +1664,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
#ifdef DEBUG #ifdef DEBUG
printf("CMoviePlayerGui::%s: spd %d pos %d/%d (%d, %d%%)\n", __func__, speed, position, duration, duration-position, file_prozent); printf("CMoviePlayerGui::%s: spd %d pos %d/%d (%d, %d%%)\n", __func__, speed, position, duration, duration-position, file_prozent);
#endif #endif
} else
#if HAVE_COOL_HARDWARE #if HAVE_COOL_HARDWARE
{
/* in case ffmpeg report incorrect values */ /* in case ffmpeg report incorrect values */
if(file_prozent > 89 && (playstate == CMoviePlayerGui::PLAY) && (speed == 1)){ if(file_prozent > 89 && (playstate == CMoviePlayerGui::PLAY) && (speed == 1)){
if(position_tmp != position){ if(position_tmp != position){
@@ -1693,8 +1691,11 @@ void CMoviePlayerGui::PlayFileLoop(void)
} }
else else
eof = 0; eof = 0;
#endif
} }
#else #if ! HAVE_COOL_HARDWARE
else
{ {
if (filelist_it == filelist.end() - 1 || filelist_it == filelist.end()) if (filelist_it == filelist.end() - 1 || filelist_it == filelist.end())
g_RCInput->postMsg((neutrino_msg_t) g_settings.mpkey_stop, 0); g_RCInput->postMsg((neutrino_msg_t) g_settings.mpkey_stop, 0);