]> www.vanbest.org Git - sasc-ng.git/commitdiff
irdeto: disable (old) CHID check
authorleslie <unknown>
Thu, 10 Sep 2009 23:37:29 +0000 (07:37 +0800)
committerleslie <unknown>
Thu, 10 Sep 2009 23:37:29 +0000 (07:37 +0800)
cam.c
system.c

diff --git a/cam.c b/cam.c
index e71de662bf764e399c1cefbe2cf3d00fe4f5d158..f822cefeb078d2b72d87fd76c00b2738f8c6f000 100644 (file)
--- a/cam.c
+++ b/cam.c
@@ -1198,7 +1198,7 @@ PRINTF(L_CORE_ECM,"%s: new caDescr: %s",id,*filterCaDescr.ToString());
               }
             }
           else {
-            PRINTF(L_CORE_ECMPROC,"%s: check result %d\n",id,n);
+            PRINTF(L_CORE_ECMPROC,"%s: check result %d",id,n);
             switch(n) {
               case 1: NoSync(true); break;
               case 2: count++; break;
index e6e5d01ad1e0eca2bddf80359db8dc014538e4aa..e2e87009a70777132ed280fbebf79613e851671f 100644 (file)
--- a/system.c
+++ b/system.c
@@ -187,15 +187,17 @@ int cSystem::CheckECM(const cEcmInfo *ecm, const unsigned char *data, bool sync)
   switch(ecm->caId>>8) {
     case 0x06: // Irdeto
       {
-      const int cur=data[4];
-      const int max=data[5];
       const int chid=WORD(data,6,0xFFFF);
       // if multiple channel id's, use current one only
       if(sync && ecm->caId==0x0604 && check->caid.sys06.current>0 && chid!=check->caid.sys06.current) {
         PRINTF(L_CORE_ECMPROC,"ecmcheck(%s): chid %04x != current %04x",name,chid,check->caid.sys06.current);
         return 2;
         }
+/*
+//XXX is that still needed? Seems to conflict with some Irdeto2 provider
       // search for fake channel id's on Stream
+      const int cur=data[4];
+      const int max=data[5];
       if(!sync && max>0 && max<MAX_CHID) {
         if(cur==0) check->caid.sys06.startFlag=true;
         if(check->caid.sys06.startFlag) {
@@ -218,6 +220,7 @@ int cSystem::CheckECM(const cEcmInfo *ecm, const unsigned char *data, bool sync)
             }
           }
         }
+*/
       break;
       }
     }