- 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
This commit is contained in:
striper
2011-05-11 06:32:17 +00:00
parent 5f96e75c31
commit e9770633ff

View File

@@ -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();