Advertisement
svenhoefer

Untitled

Jan 22nd, 2018
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.44 KB | None | 0 0
  1. diff --git a/src/zapit/src/capmt.cpp b/src/zapit/src/capmt.cpp
  2. index cf0fb28..fc8923d 100644
  3. --- a/src/zapit/src/capmt.cpp
  4. +++ b/src/zapit/src/capmt.cpp
  5. @@ -307,6 +307,18 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
  6.             INFO("\033[33m socket only\033[0m");
  7.             cam->makeCaPmt(channel, true);
  8.             cam->setCaPmt(true);
  9. +           // CI
  10. +           CaIdVector caids;
  11. +           cCA::GetInstance()->GetCAIDS(caids);
  12. +           uint8_t list = CCam::CAPMT_ONLY;
  13. +           cam->makeCaPmt(channel, false, list, caids);
  14. +           int len;
  15. +           unsigned char * buffer = channel->getRawPmt(len);
  16. +#if HAVE_COOL_HARDWARE
  17. +           cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_SMARTCARD);
  18. +#else
  19. +           cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, mode, start);
  20. +#endif
  21.         }
  22.     }
  23.  #if ! HAVE_COOL_HARDWARE
  24. @@ -417,6 +429,8 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
  25.         unsigned char * buffer = channel->getRawPmt(len);
  26.  #if HAVE_COOL_HARDWARE
  27.         cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_SMARTCARD);
  28. +#else
  29. +       cam->sendCaPmt(channel->getChannelID(), buffer, len, CA_SLOT_TYPE_CI, channel->scrambled, channel->camap, 0, true);
  30.  #endif
  31.         if (tunerno >= 0 && tunerno != cDemux::GetSource(cam->getSource())) {
  32.             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