]> www.vanbest.org Git - sasc-ng.git/commitdiff
irdeto: optimise chid check
authorleslie <unknown>
Sat, 6 Mar 2010 13:39:22 +0000 (21:39 +0800)
committerleslie <unknown>
Sat, 6 Mar 2010 13:39:22 +0000 (21:39 +0800)
system.c

index 847b1d27e52b4fa53534bd203c0d648ac67ed172..f8c3a1b8fcb44fc155d949f48c27021c7090a275 100644 (file)
--- a/system.c
+++ b/system.c
@@ -189,9 +189,9 @@ int cSystem::CheckECM(const cEcmInfo *ecm, const unsigned char *data, bool sync)
       {
       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) {
+      if(sync && 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;
+        return 3;
         }
 /*
 //XXX is that still needed? Seems to conflict with some Irdeto2 provider