zapit/src/capmt.cpp: send channel_id in place of tpid with capmt

This commit is contained in:
[CST] Focus
2013-03-08 17:31:54 +04:00
parent e05ab5297d
commit a22dc19e9d

View File

@@ -238,6 +238,7 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
cam->setSource(source); cam->setSource(source);
if(newmask == 0) { if(newmask == 0) {
cam->sendMessage(NULL, 0, false); cam->sendMessage(NULL, 0, false);
cam->sendCaPmt(channel->getChannelID(), NULL, 0);
} else { } else {
cam->makeCaPmt(channel, true); cam->makeCaPmt(channel, true);
cam->setCaPmt(true); cam->setCaPmt(true);
@@ -273,7 +274,7 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
cam->makeCaPmt(channel, false, list, caids); cam->makeCaPmt(channel, false, list, caids);
int len; int len;
unsigned char * buffer = channel->getRawPmt(len); unsigned char * buffer = channel->getRawPmt(len);
cam->sendCaPmt(channel->getTransponderId(), buffer, len); cam->sendCaPmt(channel->getChannelID(), buffer, len);
//list = CCam::CAPMT_MORE; //list = CCam::CAPMT_MORE;
} }
mutex.unlock(); mutex.unlock();