mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
src/gui/movieplayer.cpp show FileTimeOSD only if setSpeed work
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user