mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
src/zapit/src/zapit.cpp: fix segfault if channel==NULL (reloadchannels)
This commit is contained in:
@@ -416,6 +416,9 @@ audio_map_set_t * CZapit::GetSavedPids(const t_channel_id channel_id)
|
||||
|
||||
bool CZapit::TuneChannel(CFrontend * frontend, CZapitChannel * channel, bool &transponder_change)
|
||||
{
|
||||
if(channel == NULL || frontend == NULL)
|
||||
return false;
|
||||
|
||||
transponder_change = frontend->setInput(channel, current_is_nvod);
|
||||
if(transponder_change && !current_is_nvod) {
|
||||
int waitForMotor = frontend->driveToSatellitePosition(channel->getSatellitePosition());
|
||||
@@ -443,6 +446,9 @@ bool CZapit::TuneChannel(CFrontend * frontend, CZapitChannel * channel, bool &tr
|
||||
|
||||
bool CZapit::ParsePatPmt(CZapitChannel * channel)
|
||||
{
|
||||
if(channel == NULL)
|
||||
return false;
|
||||
|
||||
CPat pat(channel->getRecordDemux());
|
||||
CPmt pmt(channel->getRecordDemux());
|
||||
DBG("looking up pids for channel_id " PRINTF_CHANNEL_ID_TYPE "\n", channel->getChannelID());
|
||||
|
Reference in New Issue
Block a user