mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
MoviePlayer: Fix display 'info clock' and 'file time' when show movie infos
This commit is contained in:
@@ -1285,13 +1285,19 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (msg == NeutrinoMessages::SHOW_EPG && p_movie_info) {
|
} else if (msg == NeutrinoMessages::SHOW_EPG && p_movie_info) {
|
||||||
|
CTimeOSD::mode m_mode = FileTime.getMode();
|
||||||
bool restore = FileTime.IsVisible();
|
bool restore = FileTime.IsVisible();
|
||||||
FileTime.kill();
|
if (restore)
|
||||||
|
FileTime.kill();
|
||||||
|
InfoClock->enableInfoClock(false);
|
||||||
|
|
||||||
cMovieInfo.showMovieInfo(*p_movie_info);
|
cMovieInfo.showMovieInfo(*p_movie_info);
|
||||||
|
|
||||||
if (restore)
|
InfoClock->enableInfoClock(true);
|
||||||
FileTime.show(position);
|
if (restore) {
|
||||||
|
FileTime.setMode(m_mode);
|
||||||
|
FileTime.update(position, duration);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -58,5 +58,7 @@ class CTimeOSD : public CComponentsFrmClock
|
|||||||
bool IsVisible() {return m_mode != MODE_HIDE;}
|
bool IsVisible() {return m_mode != MODE_HIDE;}
|
||||||
void update(int position, int duration);
|
void update(int position, int duration);
|
||||||
void switchMode(int position, int duration);
|
void switchMode(int position, int duration);
|
||||||
|
mode getMode() { return m_mode; };
|
||||||
|
void setMode (mode mode_) { m_mode = mode_; };
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user