Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/zapit/src/capmt.cpp b/src/zapit/src/capmt.cpp
- index cf0fb28..fc8923d 100644
- --- a/src/zapit/src/capmt.cpp
- +++ b/src/zapit/src/capmt.cpp
- @@ -307,6 +307,18 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
- INFO("\033[33m socket only\033[0m");
- cam->makeCaPmt(channel, true);
- cam->setCaPmt(true);
- + // CI
- + CaIdVector caids;
- + cCA::GetInstance()->GetCAIDS(caids);
- + uint8_t list = CCam::CAPMT_ONLY;
- + cam->makeCaPmt(channel, false, list, caids);
- + int len;
- + unsigned char * buffer = channel->getRawPmt(len);
- +#if HAVE_COOL_HARDWARE
- + cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_SMARTCARD);
- +#else
- + cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, mode, start);
- +#endif
- }
- }
- #if ! HAVE_COOL_HARDWARE
- @@ -417,6 +429,8 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
- unsigned char * buffer = channel->getRawPmt(len);
- #if HAVE_COOL_HARDWARE
- cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_SMARTCARD);
- +#else
- + cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, 0, true);
- #endif
- if (tunerno >= 0 && tunerno != cDemux::GetSource(cam->getSource())) {
- INFO("CI: configured tuner %d do not match %d, skip [%s]", tunerno, cam->getSource(), channel->getName().c_str());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement