mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
infoviewer: displaying dd availability is now optional -fix
This commit is contained in:
@@ -453,7 +453,7 @@ void CRemoteControl::getNVODs()
|
|||||||
void CRemoteControl::processAPIDnames()
|
void CRemoteControl::processAPIDnames()
|
||||||
{
|
{
|
||||||
has_unresolved_ctags= false;
|
has_unresolved_ctags= false;
|
||||||
has_ac3 = false; //FIXME what this variable suppoused to do ?? seems unused
|
has_ac3 = false; //use in infoviewer
|
||||||
int pref_found = -1;
|
int pref_found = -1;
|
||||||
int pref_ac3_found = -1;
|
int pref_ac3_found = -1;
|
||||||
int pref_idx = -1;
|
int pref_idx = -1;
|
||||||
|
@@ -163,6 +163,7 @@ void CInfoViewerBB::getBBIconInfo()
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case CInfoViewerBB::ICON_DD:
|
case CInfoViewerBB::ICON_DD:
|
||||||
|
if( g_settings.infobar_show_dd_available )
|
||||||
iconView = checkBBIcon(NEUTRINO_ICON_DD, &w, &h);
|
iconView = checkBBIcon(NEUTRINO_ICON_DD, &w, &h);
|
||||||
break;
|
break;
|
||||||
case CInfoViewerBB::ICON_16_9: //no radio
|
case CInfoViewerBB::ICON_16_9: //no radio
|
||||||
@@ -414,14 +415,14 @@ void CInfoViewerBB::showIcon_VTXT()
|
|||||||
|
|
||||||
void CInfoViewerBB::showIcon_DD()
|
void CInfoViewerBB::showIcon_DD()
|
||||||
{
|
{
|
||||||
if (!is_visible)
|
if (!is_visible || !g_settings.infobar_show_dd_available)
|
||||||
return;
|
return;
|
||||||
std::string dd_icon;
|
std::string dd_icon;
|
||||||
if ((g_RemoteControl->current_PIDs.PIDs.selected_apid < g_RemoteControl->current_PIDs.APIDs.size()) &&
|
if ((g_RemoteControl->current_PIDs.PIDs.selected_apid < g_RemoteControl->current_PIDs.APIDs.size()) &&
|
||||||
(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].is_ac3))
|
(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].is_ac3))
|
||||||
dd_icon = NEUTRINO_ICON_DD;
|
dd_icon = NEUTRINO_ICON_DD;
|
||||||
else
|
else
|
||||||
dd_icon = (g_settings.infobar_show_dd_available && g_RemoteControl->has_ac3) ? NEUTRINO_ICON_DD_AVAIL : NEUTRINO_ICON_DD_GREY;
|
dd_icon = g_RemoteControl->has_ac3 ? NEUTRINO_ICON_DD_AVAIL : NEUTRINO_ICON_DD_GREY;
|
||||||
|
|
||||||
showBBIcons(CInfoViewerBB::ICON_DD, dd_icon);
|
showBBIcons(CInfoViewerBB::ICON_DD, dd_icon);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user