infoviewer_bb.cpp CInfoViewerBB::getBBButtonInfo() fix audioname in ts mode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0013e139a5
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-12-18 (Thu, 18 Dec 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2014-12-18 19:08:38 +01:00
parent 82b10410af
commit 39d52d626c

View File

@@ -212,7 +212,7 @@ void CInfoViewerBB::getBBButtonInfo()
bbButtonMaxH = 0;
bbButtonMaxX = g_InfoViewer->ChanInfoX;
int bbButtonMaxW = 0;
int mode;
int mode = NeutrinoMessages::mode_unknown;
for (int i = 0; i < CInfoViewerBB::BUTTON_MAX; i++) {
int w = 0, h = 0;
bool active;
@@ -232,7 +232,8 @@ void CInfoViewerBB::getBBButtonInfo()
icon = NEUTRINO_ICON_BUTTON_GREEN;
frameBuffer->getIconSize(icon.c_str(), &w, &h);
text = CUserMenu::getUserMenuButtonName(1, active);
if (!text.empty())
mode = CNeutrinoApp::getInstance()->getMode();
if (!text.empty() && mode != NeutrinoMessages::mode_ts)
break;
text = g_settings.usermenu[SNeutrinoSettings::BUTTON_GREEN]->title;
if (text == g_Locale->getText(LOCALE_AUDIOSELECTMENUE_HEAD))