Skip to content

Commit

Permalink
capmt.cpp: enable CI for recording only if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
FlatTV authored and Frankenstone committed Mar 24, 2019
1 parent 82840c8 commit 092bfc5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/zapit/src/capmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,13 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
cam->makeCaPmt(channel, false, list, caids);
int len;
unsigned char * buffer = channel->getRawPmt(len);
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, mode, start);
if(!filter_channels || !channel->bUseCI) {
//no CI needed
ca_map_t no_camap = std::set<int>();
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, false /*channel->scrambled*/, no_camap /*channel->camap*/, mode, start);
} else {
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, mode, start);
}
} else {
cam->sendCaPmt(channel->getChannelID(), NULL, 0, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, mode, start);
}
Expand Down

0 comments on commit 092bfc5

Please sign in to comment.