Skip to content

Commit

Permalink
Check ciHandler for NULL before use since it may not be set if DVBCam…
Browse files Browse the repository at this point in the history
…::Start() fails and we don't check the return of that function in DVBChannel.
  • Loading branch information
daniel-kristjansson committed Mar 11, 2011
1 parent f95ad9f commit a628797
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/dvbcam.cpp
Expand Up @@ -311,7 +311,8 @@ void DVBCam::SetPMT(const ChannelBase *chan, const ProgramMapTable *pmt)

void DVBCam::SetTimeOffset(double offset_in_seconds)
{
ciHandler->SetTimeOffset(offset_in_seconds);
if (ciHandler)
ciHandler->SetTimeOffset(offset_in_seconds);
}

static const char *cplm_info[] =
Expand Down

0 comments on commit a628797

Please sign in to comment.