[vdr] why a StartDecrypting in cDevice::Detach(cReceiver *Receiver) ?

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Thu Dec 4 15:07:39 CET 2008


On 03.12.2008 21:29, jlacvdr wrote:
> Hi,
> 
> In many versions of vdr we can found  camSlot->StartDecrypting()  in
> the function Device::Detach(cReceiver *Receiver).
> I'm surprised about this StartDecrypting, I think it should be StopDecryptiong.
> 
> If someone (klaus ?) can explain this ?

When a cReceiver is detached from the device, the number of necessary
CA_PMTs may change, and the StartDecrypting() call makes sure that the
CAM knows about this.
StopDecrypting() would stop decrypting entirely, even for the remaining
cReceivers that might still be attached to the device.

Klaus



More information about the vdr mailing list