diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-07 13:00:33 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-07 13:00:33 +0100 |
commit | 52620f147b21d979780ca3e2e849caa5138fbeba (patch) | |
tree | fef5698e957077c754e5e14ee20c2209ba58fc9d /device.c | |
parent | f3d583b1245081b27c8007a5afd0c61a80fd14ad (diff) | |
download | vdr-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.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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); |