mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
neutrino: fix segfault if not found frontend
This commit is contained in:
@@ -1819,6 +1819,12 @@ TIMER_START();
|
|||||||
|
|
||||||
cpuFreq = new cCpuFreqManager();
|
cpuFreq = new cCpuFreqManager();
|
||||||
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
|
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;
|
g_info.delivery_system = CFEManager::getInstance()->getLiveFE()->getInfo()->type == FE_QPSK ? DVB_S : DVB_C;
|
||||||
#if HAVE_TRIPLEDRAGON
|
#if HAVE_TRIPLEDRAGON
|
||||||
/* only SAT-hd1 before rev 8 has fan, rev 1 is TD (compat hack) */
|
/* only SAT-hd1 before rev 8 has fan, rev 1 is TD (compat hack) */
|
||||||
|
@@ -591,6 +591,9 @@ bool CServiceManager::InitSatPosition(t_satellite_position position, char * name
|
|||||||
|
|
||||||
bool CServiceManager::LoadServices(bool only_current)
|
bool CServiceManager::LoadServices(bool only_current)
|
||||||
{
|
{
|
||||||
|
if(CFEManager::getInstance()->getLiveFE() == NULL)
|
||||||
|
return false;
|
||||||
|
|
||||||
xmlDocPtr parser;
|
xmlDocPtr parser;
|
||||||
static bool satcleared = 0;//clear only once, because menu is static
|
static bool satcleared = 0;//clear only once, because menu is static
|
||||||
service_count = 0;
|
service_count = 0;
|
||||||
|
Reference in New Issue
Block a user