change ca->SendPMT() from DEMUX_SOURCE_2 to channel->getRecordDemux()

This commit is contained in:
[CST] Focus
2012-04-05 18:06:48 +04:00
parent 3bc496e412
commit 1d9ab9929f
2 changed files with 5 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ record_error_msg_t CRecordInstance::Start(CZapitChannel * channel /*, APIDList &
int len;
unsigned char * pmt = channel->getRawPmt(len);
cCA * ca = cCA::GetInstance();
ca->SendPMT(DEMUX_SOURCE_2, pmt, len);
ca->SendPMT(channel->getRecordDemux() /*DEMUX_SOURCE_2*/, pmt, len);
//CVFD::getInstance()->ShowIcon(VFD_ICON_CAM1, true);
WaitRecMsg(msg_start_time, 2);

View File

@@ -692,7 +692,10 @@ void CZapit::SetRecordMode(bool enable)
} else {
currentMode &= ~RECORD_MODE;
ca->SendPMT(DEMUX_SOURCE_2, (unsigned char*) "", 0, CA_SLOT_TYPE_SMARTCARD);
int demux = 2;
if(current_channel)
demux = current_channel->getRecordDemux();
ca->SendPMT(demux /*DEMUX_SOURCE_2*/, (unsigned char*) "", 0, CA_SLOT_TYPE_SMARTCARD);
event = CZapitClient::EVT_RECORDMODE_DEACTIVATED;
}
SendEvent(event);