From: leslie Date: Thu, 10 Sep 2009 23:37:29 +0000 (+0800) Subject: irdeto: disable (old) CHID check X-Git-Tag: upstream/620~174 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=f9620bbb14ec63dede56fc82fdedaf8ee540a1a3;p=sasc-ng.git irdeto: disable (old) CHID check --- diff --git a/cam.c b/cam.c index e71de66..f822cef 100644 --- 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; diff --git a/system.c b/system.c index e6e5d01..e2e8700 100644 --- 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 && maxcaid.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; } }