Need to make sure that we check for null before we pass on to other functions.
From: Erik Hovland <erik@hovland.org>
---
libs/libmythtv/avformatdecoder.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/libs/libmythtv/avformatdecoder.cpp b/libs/libmythtv/avformatdecoder.cpp
index ceedf75..bc1e243 100644
a
|
b
|
void AvFormatDecoder::ScanTeletextCaptions(int av_index) |
1367 | 1367 | */ |
1368 | 1368 | void AvFormatDecoder::ScanDSMCCStreams(void) |
1369 | 1369 | { |
1370 | | if (!ic->cur_pmt_sect) |
| 1370 | if (!ic || !ic->cur_pmt_sect) |
1371 | 1371 | return; |
1372 | 1372 | |
1373 | 1373 | if (!itv && ! (itv = GetNVP()->GetInteractiveTV())) |
… |
… |
int AvFormatDecoder::ScanStreams(bool novideo) |
1783 | 1783 | if (bitrate > 0) |
1784 | 1784 | { |
1785 | 1785 | bitrate = (bitrate + 999) / 1000; |
1786 | | if (ringBuffer) |
1787 | | ringBuffer->UpdateRawBitrate(bitrate); |
| 1786 | ringBuffer->UpdateRawBitrate(bitrate); |
1788 | 1787 | } |
1789 | 1788 | |
1790 | 1789 | if (ringBuffer->isDVD()) |