1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Decreased the scrambling timeout for CAMs known to decrypt a certain channel

This commit is contained in:
Klaus Schmidinger 2021-03-17 10:59:36 +01:00
parent 7ffc1a5efe
commit 3d55d3045e
2 changed files with 4 additions and 2 deletions

View File

@ -9614,3 +9614,5 @@ Video Disk Recorder Revision History
- When checking whether a particular recording has already been made by a pattern - When checking whether a particular recording has already been made by a pattern
timer, the characters ' ' (blank), ':' and '-' are now ignored, making timer, the characters ' ' (blank), ':' and '-' are now ignored, making
"TITLE - EPISODE" and "TITLE: EPISODE" the same. "TITLE - EPISODE" and "TITLE: EPISODE" the same.
- Decreased the scrambling timeout for CAMs known to decrypt a certain channel, so
that it won't collide with MAXBROKENTIMEOUT in recorder.c.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: device.c 5.1 2021/01/11 10:36:05 kls Exp $ * $Id: device.c 5.2 2021/03/17 10:59:36 kls Exp $
*/ */
#include "device.h" #include "device.h"
@ -1802,7 +1802,7 @@ bool cDevice::AttachReceiver(cReceiver *Receiver)
Receiver->scramblingTimeout = TS_SCRAMBLING_TIMEOUT; Receiver->scramblingTimeout = TS_SCRAMBLING_TIMEOUT;
bool KnownToDecrypt = ChannelCamRelations.CamDecrypt(Receiver->ChannelID(), camSlot->MasterSlotNumber()); bool KnownToDecrypt = ChannelCamRelations.CamDecrypt(Receiver->ChannelID(), camSlot->MasterSlotNumber());
if (KnownToDecrypt) if (KnownToDecrypt)
Receiver->scramblingTimeout *= 10; // give it time to receive ECM/EMM Receiver->scramblingTimeout *= 9; // give it time to receive ECM/EMM (must be less than MAXBROKENTIMEOUT in recorder.c!)
if (Receiver->ChannelID().Valid()) if (Receiver->ChannelID().Valid())
dsyslog("CAM %d: %sknown to decrypt channel %s (scramblingTimeout = %ds)", camSlot->MasterSlotNumber(), KnownToDecrypt ? "" : "not ", *Receiver->ChannelID().ToString(), Receiver->scramblingTimeout); dsyslog("CAM %d: %sknown to decrypt channel %s (scramblingTimeout = %ds)", camSlot->MasterSlotNumber(), KnownToDecrypt ? "" : "not ", *Receiver->ChannelID().ToString(), Receiver->scramblingTimeout);
} }