From f9620bbb14ec63dede56fc82fdedaf8ee540a1a3 Mon Sep 17 00:00:00 2001 From: leslie Date: Fri, 11 Sep 2009 07:37:29 +0800 Subject: [PATCH] irdeto: disable (old) CHID check --- cam.c | 2 +- system.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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; } } -- 2.39.5