mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
The mechanism of trying different CAMs when switching to an encrypted channel is now only triggered if there acually is more than one CAM in the system
This commit is contained in:
parent
d1ddb39781
commit
196f2af596
3
HISTORY
3
HISTORY
@ -8894,4 +8894,5 @@ Video Disk Recorder Revision History
|
||||
by Dietmar Spingler). This speeds up switching to encrypted channels after
|
||||
newly starting VDR, in case there is more than one CAM in the system.
|
||||
- Fixed a flaw in handling timeouts for encrypted channels.
|
||||
|
||||
- The mechanism of trying different CAMs when switching to an encrypted channel is
|
||||
now only triggered if there acually is more than one CAM in the system.
|
||||
|
4
device.c
4
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.4 2017/01/09 12:51:05 kls Exp $
|
||||
* $Id: device.c 4.5 2017/01/09 14:25:38 kls Exp $
|
||||
*/
|
||||
|
||||
#include "device.h"
|
||||
@ -1678,6 +1678,7 @@ bool cDevice::AttachReceiver(cReceiver *Receiver)
|
||||
Unlock();
|
||||
if (camSlot && Receiver->priority > MINPRIORITY) { // priority check to avoid an infinite loop with the CAM slot's caPidReceiver
|
||||
camSlot->StartDecrypting();
|
||||
if (CamSlots.Count() > 1) { // don't try different CAMs if there is only one
|
||||
startScrambleDetection = time(NULL);
|
||||
scramblingTimeout = TS_SCRAMBLING_TIMEOUT;
|
||||
bool KnownToDecrypt = ChannelCamRelations.CamDecrypt(Receiver->ChannelID(), camSlot->SlotNumber());
|
||||
@ -1685,6 +1686,7 @@ bool cDevice::AttachReceiver(cReceiver *Receiver)
|
||||
scramblingTimeout *= 10; // give it time to receive ECM/EMM
|
||||
dsyslog("CAM %d: %sknown to decrypt channel %s (scramblingTimeout = %ds)", camSlot->SlotNumber(), KnownToDecrypt ? "" : "not ", *Receiver->ChannelID().ToString(), scramblingTimeout);
|
||||
}
|
||||
}
|
||||
Start();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user