src/gui/movieplayer.cpp show FileTimeOSD only if setSpeed work

This commit is contained in:
Jacek Jendrzej
2017-06-30 13:40:19 +02:00
parent fc5ba460a5
commit 1f095b96c9

View File

@@ -1534,7 +1534,8 @@ void CMoviePlayerGui::PlayFileLoop(void)
makeScreenShot();
} else if ((msg == (neutrino_msg_t) g_settings.mpkey_rewind) ||
(msg == (neutrino_msg_t) g_settings.mpkey_forward)) {
int newspeed;
int newspeed = 0;
bool setSpeed = false;
if (msg == (neutrino_msg_t) g_settings.mpkey_rewind) {
newspeed = (speed >= 0) ? -1 : speed - 1;
} else {
@@ -1547,9 +1548,10 @@ void CMoviePlayerGui::PlayFileLoop(void)
if (playstate != CMoviePlayerGui::PAUSE)
playstate = msg == (neutrino_msg_t) g_settings.mpkey_rewind ? CMoviePlayerGui::REW : CMoviePlayerGui::FF;
updateLcd();
setSpeed = true;
}
if (!FileTimeOSD->IsVisible() && !time_forced) {
if (!FileTimeOSD->IsVisible() && !time_forced && setSpeed) {
FileTimeOSD->switchMode(position, duration);
time_forced = true;
}