mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 19:01:25 +02:00
- zapit/capmt: fix coolstream build
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -319,7 +319,11 @@ 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);
|
||||||
|
#if HAVE_COOL_HARDWARE
|
||||||
|
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI);
|
||||||
|
#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);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -432,8 +436,6 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
|||||||
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, 0, true);
|
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, 0, true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* out commented: causes a double send of capmt, the second without needed parameters */
|
|
||||||
#if HAVE_COOL_HARDWARE
|
|
||||||
if (tunerno >= 0 && tunerno != cDemux::GetSource(cam->getSource())) {
|
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());
|
INFO("CI: configured tuner %d do not match %d, skip [%s]", tunerno, cam->getSource(), channel->getName().c_str());
|
||||||
} else if (filter_channels && !channel->bUseCI) {
|
} else if (filter_channels && !channel->bUseCI) {
|
||||||
@@ -441,8 +443,8 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
|||||||
} else if(channel->scrambled) {
|
} else if(channel->scrambled) {
|
||||||
useCI = true;
|
useCI = true;
|
||||||
INFO("CI: use CI for [%s]", channel->getName().c_str());
|
INFO("CI: use CI for [%s]", channel->getName().c_str());
|
||||||
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI);
|
} else
|
||||||
}
|
INFO("CI: no CI needed for [%s]", channel->getName().c_str());
|
||||||
//list = CCam::CAPMT_MORE;
|
//list = CCam::CAPMT_MORE;
|
||||||
if((oldmask != newmask) || force_update || (oldmask == newmask && mode && start))
|
if((oldmask != newmask) || force_update || (oldmask == newmask && mode && start))
|
||||||
{
|
{
|
||||||
@@ -454,17 +456,20 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
|||||||
|
|
||||||
if(useCI)
|
if(useCI)
|
||||||
{
|
{
|
||||||
|
#if HAVE_COOL_HARDWARE
|
||||||
|
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI);
|
||||||
|
#else
|
||||||
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, 0, true);
|
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, 0, true);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
#if ! HAVE_COOL_HARDWARE
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
INFO("\033[33m no CI needed\033[0m");
|
|
||||||
//no CI needed
|
|
||||||
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, false /*channel->scrambled*/, channel->camap, mode, start);
|
cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, false /*channel->scrambled*/, channel->camap, mode, start);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#if ! HAVE_COOL_HARDWARE
|
#if ! HAVE_COOL_HARDWARE
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user