From 0c5485d4ca216e852ee20feace127e7fbd56d4f0 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 28 Feb 2018 10:31:06 +0100 Subject: [PATCH] - movieplayer: revert to good ol' vfd-handling; ... show playstate in vfd and avoid mode changes Signed-off-by: Thilo Graf # Conflicts: # src/gui/movieplayer.cpp --- src/gui/movieplayer.cpp | 36 ++++++------------------------------ 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 9a2949fde..6c2fef6b1 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -85,10 +85,10 @@ #include #endif -#ifndef HAVE_COOL_HARDWARE -#define LCD_MODE CVFD::MODE_MOVIE -#else +#if HAVE_COOL_HARDWARE || HAVE_ARM_HARDWARE #define LCD_MODE CVFD::MODE_MENU_UTF8 +#else +#define LCD_MODE CVFD::MODE_MOVIE #endif extern cVideo * videoDecoder; @@ -459,8 +459,6 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey) } while(!isHTTP && !isUPNP && SelectFile()) { - CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO); - CVFD::getInstance()->showServicename(file_name.c_str()); if (timeshift != TSHIFT_MODE_OFF) { CVFD::getInstance()->ShowIcon(FP_ICON_TIMESHIFT, true); PlayFile(); @@ -475,7 +473,6 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey) } while (repeat_mode || filelist_it != filelist.end()); } - CVFD::getInstance()->showServicename(CVFD::getInstance()->getServicename()); bookmarkmanager->flush(); @@ -1463,7 +1460,6 @@ void CMoviePlayerGui::PlayFileLoop(void) #if 0 neutrino_msg_t lastmsg = 0; #endif - int ss,mm,hh; #if HAVE_COOL_HARDWARE int eof = 0; int eof2 = 0; @@ -1519,18 +1515,6 @@ void CMoviePlayerGui::PlayFileLoop(void) CVFD::getInstance()->showPercentOver(file_prozent); - if (g_info.hw_caps->display_xres > 8) - { - ss = position/1000; - hh = ss/3600; - ss -= hh * 3600; - mm = ss/60; - ss -= mm * 60; - std::string Value = to_string(hh/10) + to_string(hh%10) + ":" + to_string(mm/10) + to_string(mm%10) + ":" + to_string(ss/10) + to_string(ss%10); - CVFD::getInstance()->setMode(CVFD::MODE_MENU_UTF8); - CVFD::getInstance()->showMenuText(0, Value.c_str(), -1, true); - } - playback->GetSpeed(speed); /* at BOF lib set speed 1, check it */ if ((playstate != CMoviePlayerGui::PLAY) && (speed == 1)) { @@ -1850,10 +1834,10 @@ void CMoviePlayerGui::PlayFileLoop(void) } else if (msg == (neutrino_msg_t) g_settings.mpkey_goto) { bool cancel = true; playback->GetPosition(position, duration); - ss = position/1000; - hh = ss/3600; + int ss = position/1000; + int hh = ss/3600; ss -= hh * 3600; - mm = ss/60; + int mm = ss/60; ss -= mm * 60; std::string Value = to_string(hh/10) + to_string(hh%10) + ":" + to_string(mm/10) + to_string(mm%10) + ":" + to_string(ss/10) + to_string(ss%10); CTimeInput jumpTime (LOCALE_MPKEY_GOTO, &Value, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, NULL, &cancel); @@ -2059,7 +2043,6 @@ void CMoviePlayerGui::callInfoViewer(bool init_vzap_it) std::string key = trim(keys[i]); if (movie_info.epgTitle.empty() && !strcasecmp("title", key.c_str())) { movie_info.epgTitle = isUTF8(values[i]) ? values[i] : convertLatin1UTF8(values[i]); - CVFD::getInstance()->showServicename(movie_info.epgTitle.c_str()); continue; } if (movie_info.channelName.empty() && !strcasecmp("artist", key.c_str())) { @@ -2096,19 +2079,12 @@ void CMoviePlayerGui::callInfoViewer(bool init_vzap_it) if (channelName.empty()) channelName = pretty_name; - std::string channelTitle = mi->epgTitle; - if (channelTitle.empty()) - channelTitle = pretty_name; - - CVFD::getInstance()->ShowText(channelTitle.c_str()); - g_InfoViewer->showMovieTitle(playstate, mi->epgId >>16, channelName, mi->epgTitle, mi->epgInfo1, duration, position, repeat_mode, init_vzap_it ? 0 /*IV_MODE_DEFAULT*/ : 1 /*IV_MODE_VIRTUAL_ZAP*/); return; } /* not moviebrowser => use the filename as title */ - CVFD::getInstance()->ShowText(pretty_name.c_str()); g_InfoViewer->showMovieTitle(playstate, 0, pretty_name, info_1, info_2, duration, position, repeat_mode); }