summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-03-27 14:02:54 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-03-27 14:02:54 +0200
commit830e30e2fb08e11a9c205ad7a664bdd32456d0e8 (patch)
treeaedf0a1b06b730ed17ad2b4fc1805888d90c787e
parentd60336ba96e80288a05e519eb087ecff9988347f (diff)
downloadvdr-830e30e2fb08e11a9c205ad7a664bdd32456d0e8.tar.gz
vdr-830e30e2fb08e11a9c205ad7a664bdd32456d0e8.tar.bz2
Only store ChannelCamRelations for receivers with valid channel ids
-rw-r--r--device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/device.c b/device.c
index ccd0e20a..247e8c56 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.10 2017/03/26 11:35:38 kls Exp $
+ * $Id: device.c 4.11 2017/03/27 14:02:54 kls Exp $
*/
#include "device.h"
@@ -1692,7 +1692,7 @@ void cDevice::Action(void)
}
else
receiver[i]->Receive(b, TS_SIZE);
- if (DescramblingOk) {
+ if (DescramblingOk && receiver[i]->ChannelID().Valid()) {
dsyslog("CAM %d: decrypts channel %s", CamSlotNumber, *receiver[i]->ChannelID().ToString());
ChannelCamRelations.SetDecrypt(receiver[i]->ChannelID(), CamSlotNumber);
startScrambleDetection = 0;