From e9770633ff01c5772c498d19faa0d3fda5ee6c40 Mon Sep 17 00:00:00 2001 From: striper Date: Wed, 11 May 2011 06:32:17 +0000 Subject: [PATCH] - fix a crash introduced in rev.1454 (patch by micha-bbg) git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1456 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/zapit/src/zapit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index ffead88f3..cc4e00238 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -926,7 +926,7 @@ bool zapit_parse_command(CBasicMessage::Header &rmsg, int connfd) msgCurrentServiceInfo.apid = g_current_channel->getAudioPid(); msgCurrentServiceInfo.vtxtpid = g_current_channel->getTeletextPid(); msgCurrentServiceInfo.pmtpid = g_current_channel->getPmtPid(); - msgCurrentServiceInfo.pmt_version = g_current_channel->getCaPmt()->version_number; + msgCurrentServiceInfo.pmt_version = (msgCurrentServiceInfo.pmtpid != 0) ? g_current_channel->getCaPmt()->version_number : 0; msgCurrentServiceInfo.pcrpid = g_current_channel->getPcrPid(); msgCurrentServiceInfo.tsfrequency = frontend->getFrequency(); msgCurrentServiceInfo.rate = frontend->getRate();