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.
This commit is contained in:
Mariusz Bialonczyk 2013-12-03 11:57:24 +01:00
parent a02d9f8625
commit a20fc729a8

View 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) {