summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-05-18 09:05:46 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-05-18 09:05:46 +0200
commitb01a1ee81864033c4489233b037b73476584fec8 (patch)
treedcb7f7f58472a8ad77c3f07ccce11f81a76e023f /device.c
parent50211c706a120cf1d7b60898c5e43b15dff6455b (diff)
downloadvdr-b01a1ee81864033c4489233b037b73476584fec8.tar.gz
vdr-b01a1ee81864033c4489233b037b73476584fec8.tar.bz2
Extended the CI API to allow plugins to implement additional CAM resources
Diffstat (limited to 'device.c')
-rw-r--r--device.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/device.c b/device.c
index 6a3ad6e7..a090afb1 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 4.19 2017/05/09 11:24:47 kls Exp $
+ * $Id: device.c 4.20 2017/05/18 09:05:46 kls Exp $
*/
#include "device.h"
@@ -1665,6 +1665,9 @@ void cDevice::Action(void)
if (b) {
// Distribute the packet to all attached receivers:
Lock();
+ cCamSlot *cs = CamSlot();
+ if (cs)
+ cs->TsPostProcess(b);
int Pid = TsPid(b);
bool IsScrambled = TsIsScrambled(b);
for (int i = 0; i < MAXRECEIVERS; i++) {
@@ -1673,7 +1676,7 @@ void cDevice::Action(void)
Receiver->Receive(b, TS_SIZE);
// Check whether the TS packet is scrambled:
if (Receiver->startScrambleDetection) {
- if (cCamSlot *cs = CamSlot()) {
+ if (cs) {
int CamSlotNumber = cs->MasterSlotNumber();
if (Receiver->lastScrambledPacket < Receiver->startScrambleDetection)
Receiver->lastScrambledPacket = Receiver->startScrambleDetection;