mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
- neutrino: unify modes handling; ...
remove double enum from CNeutrinoApp and move mostly used enum from NeutrinoMessages to new NeutrinoModes Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -116,7 +116,7 @@ int CStreamInfo2::exec (CMenuTarget * parent, const std::string &)
|
||||
if (parent)
|
||||
parent->hide ();
|
||||
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webradio)
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio)
|
||||
mp = &CMoviePlayerGui::getInstance(true);
|
||||
else
|
||||
mp = &CMoviePlayerGui::getInstance();
|
||||
@@ -313,7 +313,7 @@ void CStreamInfo2::paint_signal_fe_box(int _x, int _y, int w, int h)
|
||||
tname += ": ";
|
||||
if (mp)
|
||||
{
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webradio)
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio)
|
||||
tname += "Web-Channel"; // TODO split into WebTV/WebRadio
|
||||
else
|
||||
tname += g_Locale->getText(LOCALE_MAINMENU_MOVIEPLAYER);
|
||||
@@ -549,7 +549,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
average_bitrate_offset = spaceoffset;
|
||||
int box_width2 = box_width-(spaceoffset+xpos);
|
||||
|
||||
if((channel->getVideoPid() || (IS_WEBCHAN(channel->getChannelID()) && CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv)) && !(videoDecoder->getBlank())){
|
||||
if((channel->getVideoPid() || (IS_WEBCHAN(channel->getChannelID()) && CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv)) && !(videoDecoder->getBlank())){
|
||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||
if (yres == 1088)
|
||||
yres = 1080;
|
||||
@@ -728,7 +728,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
if (mp) {
|
||||
//channel
|
||||
ypos += iheight;
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webradio) {
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio) {
|
||||
snprintf(buf, sizeof(buf), "%s:",g_Locale->getText (LOCALE_TIMERLIST_CHANNEL));//swiped locale
|
||||
g_Font[font_info]->RenderString(xpos, ypos, box_width, buf , COL_MENUCONTENT_TEXT);
|
||||
snprintf(buf, sizeof(buf), "%s", channel->getName().c_str());
|
||||
|
Reference in New Issue
Block a user