mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
streaminfo: some mode_webradio fixes
Origin commit data
------------------
Commit: 5bbbfe3ec0
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-06 (Mon, 06 Nov 2017)
Origin message was:
------------------
- streaminfo: some mode_webradio fixes
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)
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webradio)
|
||||
mp = &CMoviePlayerGui::getInstance(true);
|
||||
else
|
||||
mp = &CMoviePlayerGui::getInstance();
|
||||
@@ -338,8 +338,8 @@ void CStreamInfo2::paint_signal_fe_box(int _x, int _y, int w, int h)
|
||||
tname += ": ";
|
||||
if (mp)
|
||||
{
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv)
|
||||
tname += g_Locale->getText(LOCALE_WEBTV_HEAD);
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webradio)
|
||||
tname += "Web-Channel"; // TODO split into WebTV/WebRadio
|
||||
else
|
||||
tname += g_Locale->getText(LOCALE_MAINMENU_MOVIEPLAYER);
|
||||
}
|
||||
@@ -753,7 +753,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
if (mp) {
|
||||
//channel
|
||||
ypos += iheight;
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv) {
|
||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::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