mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- movieplayer: revert to good ol' vfd-handling; ...
show playstate in vfd and avoid mode changes Signed-off-by: Thilo Graf <dbt@novatux.de> # Conflicts: # src/gui/movieplayer.cpp
This commit is contained in:
@@ -85,10 +85,10 @@
|
||||
#include <gui/infoicons.h>
|
||||
#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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user