From 2de4f1a693b6769ede39f81d1cd0a941aa456053 Mon Sep 17 00:00:00 2001 From: leslie Date: Sat, 6 Mar 2010 21:39:22 +0800 Subject: [PATCH] irdeto: optimise chid check --- system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system.c b/system.c index 847b1d2..f8c3a1b 100644 --- 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 -- 2.39.5