Revert "capmt.cpp: enable CI for recording only if necessary"

This reverts commit 7d117a62de.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4e15906d78
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-04-17 (Wed, 17 Apr 2019)



------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-04-17 23:25:14 +02:00
parent 912d2b1b47
commit 5a02f38d42

View File

@@ -325,13 +325,7 @@ 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);
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);
}
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);
}