mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
movieplayer: shorten debug messages, print less often
This commit is contained in:
@@ -931,6 +931,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
|||||||
bool first_start = true;
|
bool first_start = true;
|
||||||
bool update_lcd = true;
|
bool update_lcd = true;
|
||||||
int eof = 0;
|
int eof = 0;
|
||||||
|
int lastpos = 0;
|
||||||
bool at_eof = !(playstate >= CMoviePlayerGui::PLAY);;
|
bool at_eof = !(playstate >= CMoviePlayerGui::PLAY);;
|
||||||
keyPressed = CMoviePlayerGui::PLUGIN_PLAYSTATE_NORMAL;
|
keyPressed = CMoviePlayerGui::PLUGIN_PLAYSTATE_NORMAL;
|
||||||
while (playstate >= CMoviePlayerGui::PLAY)
|
while (playstate >= CMoviePlayerGui::PLAY)
|
||||||
@@ -963,7 +964,10 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
|||||||
update_lcd = true;
|
update_lcd = true;
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#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
|
#endif
|
||||||
/* in case ffmpeg report incorrect values */
|
/* in case ffmpeg report incorrect values */
|
||||||
int posdiff = duration - position;
|
int posdiff = duration - position;
|
||||||
@@ -1779,7 +1783,7 @@ void CMoviePlayerGui::UpdatePosition()
|
|||||||
file_prozent = (unsigned char) (position / (duration / 100));
|
file_prozent = (unsigned char) (position / (duration / 100));
|
||||||
FileTime.update(position, duration);
|
FileTime.update(position, duration);
|
||||||
#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::%s: spd %d pos %d/%d (%d, %d%%)\n", __func__, speed, position, duration, duration-position, file_prozent);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user