mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
CLuaInstVideo::PlayFile: Infoviewer was not displayed when InfoFunc was set
- Fix commit 1aee964c14
- Set Lua api version to 1.68
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
* to luainstance.h changes
|
||||
*/
|
||||
#define LUA_API_VERSION_MAJOR 1
|
||||
#define LUA_API_VERSION_MINOR 67
|
||||
#define LUA_API_VERSION_MINOR 68
|
||||
|
@@ -1524,6 +1524,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
SetPosition(1000 * (hh * 3600 + mm * 60 + ss), true);
|
||||
|
||||
} else if (msg == CRCInput::RC_help || msg == CRCInput::RC_info) {
|
||||
if (fromInfoviewer) {
|
||||
#ifdef ENABLE_LUA
|
||||
if (isLuaPlay && haveLuaInfoFunc) {
|
||||
CTimeOSD::mode m_mode = FileTime.getMode();
|
||||
@@ -1540,22 +1541,24 @@ 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 {
|
||||
}
|
||||
else {
|
||||
#endif
|
||||
if (fromInfoviewer) {
|
||||
g_EpgData->show_mp(p_movie_info,GetPosition(),GetDuration());
|
||||
fromInfoviewer = false;
|
||||
#ifdef ENABLE_LUA
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
callInfoViewer();
|
||||
}
|
||||
update_lcd = true;
|
||||
clearSubtitle();
|
||||
} else if (timeshift != TSHIFT_MODE_OFF && (msg == CRCInput::RC_text || msg == CRCInput::RC_epg || msg == NeutrinoMessages::SHOW_EPG)) {
|
||||
|
Reference in New Issue
Block a user