diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index bffe01b29..a9e8f4950 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -931,6 +931,7 @@ void CMoviePlayerGui::PlayFileLoop(void) bool first_start = true; bool update_lcd = true; int eof = 0; + int lastpos = 0; bool at_eof = !(playstate >= CMoviePlayerGui::PLAY);; keyPressed = CMoviePlayerGui::PLUGIN_PLAYSTATE_NORMAL; while (playstate >= CMoviePlayerGui::PLAY) @@ -963,7 +964,10 @@ void CMoviePlayerGui::PlayFileLoop(void) update_lcd = true; } #ifdef DEBUG - printf("CMoviePlayerGui::PlayFile: speed %d position %d duration %d (%d, %d%%)\n", speed, position, duration, duration-position, file_prozent); + if (msg < CRCInput::RC_Events || eof > 0 || position - lastpos >= 10000) { + lastpos = position; + printf("CMoviePlayerGui::%s: spd %d pos %d/%d (%d, %d%%)\n", __func__, speed, position, duration, duration-position, file_prozent); + } #endif /* in case ffmpeg report incorrect values */ int posdiff = duration - position; @@ -1779,7 +1783,7 @@ void CMoviePlayerGui::UpdatePosition() file_prozent = (unsigned char) (position / (duration / 100)); FileTime.update(position, duration); #ifdef DEBUG - printf("CMoviePlayerGui::PlayFile: speed %d position %d duration %d (%d, %d%%)\n", 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 } }