mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
src/zapit/src/zapit.cpp: fix segfault if channel==NULL (reloadchannels)
Origin commit data
------------------
Branch: ni/coolstream
Commit: d67b1e9c93
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-12-13 (Thu, 13 Dec 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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