osd_setup.cpp: Fix segfault in mode single tuner/display tuner icon

This commit is contained in:
micha-bbg
2012-10-02 11:58:12 +02:00
parent 07ab8ad0c9
commit 7a414b7c56
2 changed files with 3 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ COsdSetup::COsdSetup(bool wizard_mode)
is_wizard = wizard_mode;
width = w_max (40, 10); //%
show_tuner_icon = 0;
}
COsdSetup::~COsdSetup()
@@ -763,7 +764,7 @@ void COsdSetup::showOsdInfobarSetup(CMenuWidget *menu_infobar)
// tuner icon
bool mc_active = false;
int show_tuner_icon = 0;
show_tuner_icon = 0;
// show possible option if we in single box mode, but don't touch the real settings
int *p_show_tuner_icon = &show_tuner_icon;
if (CFEManager::getInstance()->getMode() != CFEManager::FE_MODE_SINGLE){