neutrino: fix segfault if not found frontend

This commit is contained in:
satbaby
2012-12-20 20:13:44 +01:00
parent 5749f86323
commit 0806c47c73
2 changed files with 9 additions and 0 deletions

View File

@@ -1819,6 +1819,12 @@ TIMER_START();
cpuFreq = new cCpuFreqManager();
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
g_info.delivery_system = DVB_S;
if(CFEManager::getInstance()->getLiveFE() != NULL){
g_info.delivery_system = CFEManager::getInstance()->getLiveFE()->getInfo()->type == FE_QPSK ? DVB_S : DVB_C;
}
g_info.delivery_system = CFEManager::getInstance()->getLiveFE()->getInfo()->type == FE_QPSK ? DVB_S : DVB_C;
#if HAVE_TRIPLEDRAGON
/* only SAT-hd1 before rev 8 has fan, rev 1 is TD (compat hack) */