mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
- movieplayer: move code to display movie-info to an own public function
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1878,29 +1878,10 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
|||||||
showHelp();
|
showHelp();
|
||||||
enableOsdElements(NO_MUTE);
|
enableOsdElements(NO_MUTE);
|
||||||
} else if (msg == CRCInput::RC_info) {
|
} else if (msg == CRCInput::RC_info) {
|
||||||
if (fromInfoviewer) {
|
if (fromInfoviewer)
|
||||||
disableOsdElements(NO_MUTE);
|
{
|
||||||
if (g_settings.movieplayer_display_playtime)
|
showMovieInfo();
|
||||||
updateLcd(false); // force title
|
|
||||||
#ifdef ENABLE_LUA
|
|
||||||
if (isLuaPlay && haveLuaInfoFunc) {
|
|
||||||
int xres = 0, yres = 0, aspectRatio = 0, framerate = -1;
|
|
||||||
if (!videoDecoder->getBlank()) {
|
|
||||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
|
||||||
if (yres == 1088)
|
|
||||||
yres = 1080;
|
|
||||||
aspectRatio = videoDecoder->getAspectRatio();
|
|
||||||
}
|
|
||||||
CLuaInstVideo::getInstance()->execLuaInfoFunc(luaState, xres, yres, aspectRatio, framerate);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
#endif
|
|
||||||
g_EpgData->show_mp(p_movie_info,GetPosition(),GetDuration());
|
|
||||||
#ifdef ENABLE_LUA
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
fromInfoviewer = false;
|
fromInfoviewer = false;
|
||||||
enableOsdElements(NO_MUTE);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
callInfoViewer();
|
callInfoViewer();
|
||||||
@@ -2052,6 +2033,32 @@ void CMoviePlayerGui::set_vzap_it(bool up)
|
|||||||
//printf("CMoviePlayerGui::%s: vzap_it: %d\n", __func__, (int)(vzap_it - filelist.begin()));
|
//printf("CMoviePlayerGui::%s: vzap_it: %d\n", __func__, (int)(vzap_it - filelist.begin()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CMoviePlayerGui::showMovieInfo()
|
||||||
|
{
|
||||||
|
disableOsdElements(NO_MUTE);
|
||||||
|
if (g_settings.movieplayer_display_playtime)
|
||||||
|
updateLcd(false); // force title
|
||||||
|
|
||||||
|
#ifdef ENABLE_LUA
|
||||||
|
if (isLuaPlay && haveLuaInfoFunc)
|
||||||
|
{
|
||||||
|
int xres = 0, yres = 0, aspectRatio = 0, framerate = -1;
|
||||||
|
if (!videoDecoder->getBlank())
|
||||||
|
{
|
||||||
|
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||||
|
if (yres == 1088)
|
||||||
|
yres = 1080;
|
||||||
|
aspectRatio = videoDecoder->getAspectRatio();
|
||||||
|
}
|
||||||
|
CLuaInstVideo::getInstance()->execLuaInfoFunc(luaState, xres, yres, aspectRatio, framerate);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
g_EpgData->show_mp(p_movie_info,GetPosition(),GetDuration());
|
||||||
|
|
||||||
|
enableOsdElements(NO_MUTE);
|
||||||
|
}
|
||||||
|
|
||||||
void CMoviePlayerGui::callInfoViewer(bool init_vzap_it)
|
void CMoviePlayerGui::callInfoViewer(bool init_vzap_it)
|
||||||
{
|
{
|
||||||
if (init_vzap_it)
|
if (init_vzap_it)
|
||||||
|
@@ -271,6 +271,7 @@ class CMoviePlayerGui : public CMenuTarget
|
|||||||
void getLivestreamInfo(std::string *i1, std::string *i2) { *i1=livestreamInfo1; *i2=livestreamInfo2; };
|
void getLivestreamInfo(std::string *i1, std::string *i2) { *i1=livestreamInfo1; *i2=livestreamInfo2; };
|
||||||
bool getLiveUrl(const std::string &url, const std::string &script, std::string &realUrl, std::string &_pretty_name, std::string &info1, std::string &info2, std::string &header);
|
bool getLiveUrl(const std::string &url, const std::string &script, std::string &realUrl, std::string &_pretty_name, std::string &info1, std::string &info2, std::string &header);
|
||||||
bool IsAudioPlaying() { return is_audio_playing; };
|
bool IsAudioPlaying() { return is_audio_playing; };
|
||||||
|
void showMovieInfo();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user