summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-07 13:00:33 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-07 13:00:33 +0100
commit52620f147b21d979780ca3e2e849caa5138fbeba (patch)
treefef5698e957077c754e5e14ee20c2209ba58fc9d /device.c
parentf3d583b1245081b27c8007a5afd0c61a80fd14ad (diff)
downloadvdr-52620f147b21d979780ca3e2e849caa5138fbeba.tar.gz
vdr-52620f147b21d979780ca3e2e849caa5138fbeba.tar.bz2
Fixed detaching receivers from devices in case a CAM needs to receive the TS
Diffstat (limited to 'device.c')
-rw-r--r--device.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/device.c b/device.c
index 43bc0e08..869c34a3 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 3.15 2014/03/15 13:23:28 kls Exp $
+ * $Id: device.c 3.16 2015/01/07 12:53:55 kls Exp $
*/
#include "device.h"
@@ -1699,10 +1699,11 @@ void cDevice::Detach(cReceiver *Receiver)
receiversLeft = true;
}
if (camSlot) {
- if (Receiver->priority > MINPRIORITY) // priority check to avoid an infinite loop with the CAM slot's caPidReceiver
+ if (Receiver->priority > MINPRIORITY) { // priority check to avoid an infinite loop with the CAM slot's caPidReceiver
camSlot->StartDecrypting();
- if (!camSlot->IsDecrypting())
- camSlot->Assign(NULL);
+ if (!camSlot->IsDecrypting())
+ camSlot->Assign(NULL);
+ }
}
if (!receiversLeft)
Cancel(-1);