mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +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)
|
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);
|
transponder_change = frontend->setInput(channel, current_is_nvod);
|
||||||
if(transponder_change && !current_is_nvod) {
|
if(transponder_change && !current_is_nvod) {
|
||||||
int waitForMotor = frontend->driveToSatellitePosition(channel->getSatellitePosition());
|
int waitForMotor = frontend->driveToSatellitePosition(channel->getSatellitePosition());
|
||||||
@@ -443,6 +446,9 @@ bool CZapit::TuneChannel(CFrontend * frontend, CZapitChannel * channel, bool &tr
|
|||||||
|
|
||||||
bool CZapit::ParsePatPmt(CZapitChannel * channel)
|
bool CZapit::ParsePatPmt(CZapitChannel * channel)
|
||||||
{
|
{
|
||||||
|
if(channel == NULL)
|
||||||
|
return false;
|
||||||
|
|
||||||
CPat pat(channel->getRecordDemux());
|
CPat pat(channel->getRecordDemux());
|
||||||
CPmt pmt(channel->getRecordDemux());
|
CPmt pmt(channel->getRecordDemux());
|
||||||
DBG("looking up pids for channel_id " PRINTF_CHANNEL_ID_TYPE "\n", channel->getChannelID());
|
DBG("looking up pids for channel_id " PRINTF_CHANNEL_ID_TYPE "\n", channel->getChannelID());
|
||||||
|
Reference in New Issue
Block a user