MoviePlayer: Disable InfoClock and FileTime when view movieinfo

Origin commit data
------------------
Commit: 47ffc7586a
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-12-02 (Fri, 02 Dec 2016)
This commit is contained in:
Michael Liebmann
2016-12-02 00:16:05 +01:00
parent feac1111ee
commit 2bb2b1c977

View File

@@ -1525,14 +1525,13 @@ void CMoviePlayerGui::PlayFileLoop(void)
} else if (msg == CRCInput::RC_help || msg == CRCInput::RC_info) {
if (fromInfoviewer) {
CTimeOSD::mode m_mode = FileTime.getMode();
bool restore = FileTime.IsVisible();
if (restore)
FileTime.kill();
CInfoClock::getInstance()->enableInfoClock(false);
#ifdef ENABLE_LUA
if (isLuaPlay && haveLuaInfoFunc) {
CTimeOSD::mode m_mode = FileTime.getMode();
bool restore = FileTime.IsVisible();
if (restore)
FileTime.kill();
CInfoClock::getInstance()->enableInfoClock(false);
int xres = 0, yres = 0, aspectRatio = 0, framerate = -1;
if (!videoDecoder->getBlank()) {
videoDecoder->getPictureInfo(xres, yres, framerate);
@@ -1541,21 +1540,19 @@ void CMoviePlayerGui::PlayFileLoop(void)
aspectRatio = videoDecoder->getAspectRatio();
}
CLuaInstVideo::getInstance()->execLuaInfoFunc(luaState, xres, yres, aspectRatio, framerate);
fromInfoviewer = false;
CInfoClock::getInstance()->enableInfoClock(true);
if (restore) {
FileTime.setMode(m_mode);
FileTime.update(position, duration);
}
}
else {
#endif
g_EpgData->show_mp(p_movie_info,GetPosition(),GetDuration());
fromInfoviewer = false;
#ifdef ENABLE_LUA
}
#endif
fromInfoviewer = false;
CInfoClock::getInstance()->enableInfoClock(true);
if (restore) {
FileTime.setMode(m_mode);
FileTime.update(position, duration);
}
}
else
callInfoViewer();