diff --git a/src/daemonc/remotecontrol.cpp b/src/daemonc/remotecontrol.cpp index a29e395c2..f057ceec8 100644 --- a/src/daemonc/remotecontrol.cpp +++ b/src/daemonc/remotecontrol.cpp @@ -453,7 +453,7 @@ void CRemoteControl::getNVODs() void CRemoteControl::processAPIDnames() { 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_ac3_found = -1; int pref_idx = -1; diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index d5f433c1e..7f1bb4b4d 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -163,7 +163,8 @@ void CInfoViewerBB::getBBIconInfo() break; #endif case CInfoViewerBB::ICON_DD: - iconView = checkBBIcon(NEUTRINO_ICON_DD, &w, &h); + if( g_settings.infobar_show_dd_available ) + iconView = checkBBIcon(NEUTRINO_ICON_DD, &w, &h); break; case CInfoViewerBB::ICON_16_9: //no radio if (neutrino->getMode() != NeutrinoMessages::mode_radio) @@ -414,14 +415,14 @@ void CInfoViewerBB::showIcon_VTXT() void CInfoViewerBB::showIcon_DD() { - if (!is_visible) + if (!is_visible || !g_settings.infobar_show_dd_available) return; std::string dd_icon; 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)) dd_icon = NEUTRINO_ICON_DD; 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); }