zapit: remove getCaPmt usage

This commit is contained in:
[CST] Focus
2012-01-25 17:51:19 +04:00
parent 4e97f0aa1e
commit 16f8d7d406

View File

@@ -42,7 +42,7 @@
#include <zapit/debug.h> #include <zapit/debug.h>
#include <zapit/getservices.h> #include <zapit/getservices.h>
#include <zapit/pat.h> #include <zapit/pat.h>
#include <zapit/pmt.h> #include <zapit/scanpmt.h>
#include <zapit/scan.h> #include <zapit/scan.h>
#include <zapit/fastscan.h> #include <zapit/fastscan.h>
#include <zapit/scansdt.h> #include <zapit/scansdt.h>
@@ -452,7 +452,7 @@ bool CZapit::ParsePatPmt(CZapitChannel * channel)
printf("[zapit] pat parsing failed\n"); printf("[zapit] pat parsing failed\n");
return false; return false;
} }
if (!pmt.parse_pmt(channel)) { if (!pmt.Parse(channel)) {
printf("[zapit] pmt parsing failed\n"); printf("[zapit] pmt parsing failed\n");
return false; return false;
} }
@@ -528,7 +528,7 @@ bool CZapit::ZapIt(const t_channel_id channel_id, bool forupdate, bool startplay
if (failed) if (failed)
return false; return false;
current_channel->getCaPmt()->ca_pmt_list_management = transponder_change ? 0x03 : 0x04; //current_channel->getCaPmt()->ca_pmt_list_management = transponder_change ? 0x03 : 0x04;
RestoreChannelPids(current_channel); RestoreChannelPids(current_channel);
@@ -841,7 +841,8 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
msgCurrentServiceInfo.apid = current_channel->getAudioPid(); msgCurrentServiceInfo.apid = current_channel->getAudioPid();
msgCurrentServiceInfo.vtxtpid = current_channel->getTeletextPid(); msgCurrentServiceInfo.vtxtpid = current_channel->getTeletextPid();
msgCurrentServiceInfo.pmtpid = current_channel->getPmtPid(); msgCurrentServiceInfo.pmtpid = current_channel->getPmtPid();
msgCurrentServiceInfo.pmt_version = (current_channel->getCaPmt() != NULL) ? current_channel->getCaPmt()->version_number : 0xff; //msgCurrentServiceInfo.pmt_version = (current_channel->getCaPmt() != NULL) ? current_channel->getCaPmt()->version_number : 0xff;
msgCurrentServiceInfo.pmt_version = current_channel->getPmtVersion();
msgCurrentServiceInfo.pcrpid = current_channel->getPcrPid(); msgCurrentServiceInfo.pcrpid = current_channel->getPcrPid();
msgCurrentServiceInfo.tsfrequency = live_fe->getFrequency(); msgCurrentServiceInfo.tsfrequency = live_fe->getFrequency();
msgCurrentServiceInfo.rate = live_fe->getRate(); msgCurrentServiceInfo.rate = live_fe->getRate();
@@ -2099,7 +2100,7 @@ void CZapit::run()
t_channel_id channel_id = current_channel->getChannelID(); t_channel_id channel_id = current_channel->getChannelID();
int vpid = current_channel->getVideoPid(); int vpid = current_channel->getVideoPid();
CPmt pmt; CPmt pmt;
pmt.parse_pmt(current_channel); pmt.Parse(current_channel);
if(vpid != current_channel->getVideoPid()) { if(vpid != current_channel->getVideoPid()) {
ZapIt(current_channel->getChannelID(), true); ZapIt(current_channel->getChannelID(), true);
} else { } else {