From a20fc729a8c84bafa5148e428f3786fc8350a9af Mon Sep 17 00:00:00 2001 From: Mariusz Bialonczyk Date: Tue, 3 Dec 2013 11:57:24 +0100 Subject: [PATCH] capmt: fix numbering services after a686fe3 The commit fixes simultaneous channel decryption. We are enumerating services based on the generated seq value. In fact it should be elementary stream PID, but currently we can leave it until PMT code rework. The CA_SET_PID and CA_SET_DESCR from OSCam was always set with seq=0 leading to setting all keys always to first subscribed service. --- src/descrambler/capmt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index e65010f2..7e68347a 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -1001,6 +1001,7 @@ capmt_service_start(service_t *s) tvhcsa_init(&ct->ct_csa); ct->ct_capmt = capmt; ct->ct_service = t; + ct->ct_seq = capmt->capmt_seq++; TAILQ_FOREACH(st, &t->s_components, es_link) {