]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
capmt: fix numbering services after a686fe3 308/head
authorMariusz Bialonczyk <manio@skyboo.net>
Tue, 3 Dec 2013 10:57:24 +0000 (11:57 +0100)
committerMariusz Bialonczyk <manio@skyboo.net>
Tue, 3 Dec 2013 12:04:55 +0000 (13:04 +0100)
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

index e65010f246d80bfb38759683c87c5ea3893bc12d..7e68347a678dfe01f33dda12d38782a2bbfdf99a 100644 (file)
@@ -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) {