diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2017-03-23 14:34:53 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2017-03-23 14:34:53 +0100 |
commit | 2d9eb7e25dc08d700b5d2c97d0baf36d5aa35f96 (patch) | |
tree | e37483f46ccd457aea0900310ae0345385aaf808 /mtd.c | |
parent | b7be7c900a4ce4ab74cbc52cee563ff4f0b5bf8f (diff) | |
download | vdr-2d9eb7e25dc08d700b5d2c97d0baf36d5aa35f96.tar.gz vdr-2d9eb7e25dc08d700b5d2c97d0baf36d5aa35f96.tar.bz2 |
Mapping PIDs in CanDecrypt(); improved description of Start-/StopDecrypting(); removed obsolete cMtdCamSlot::IsDecrypting(); fixed getting device fpr channel up/down
Diffstat (limited to 'mtd.c')
-rw-r--r-- | mtd.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: mtd.c 1.3 2017/03/19 14:20:22 kls Exp $ + * $Id: mtd.c 1.4 2017/03/23 14:34:53 kls Exp $ */ #include "mtd.h" @@ -262,10 +262,9 @@ bool cMtdCamSlot::ProvidesCa(const int *CaSystemIds) return MasterSlot()->ProvidesCa(CaSystemIds); } -bool cMtdCamSlot::CanDecrypt(const cChannel *Channel) +bool cMtdCamSlot::CanDecrypt(const cChannel *Channel, cMtdMapper *MtdMapper) { - //TODO PID mapping? - return MasterSlot()->CanDecrypt(Channel); + return MasterSlot()->CanDecrypt(Channel, mtdMapper); } void cMtdCamSlot::StartDecrypting(void) @@ -277,15 +276,12 @@ void cMtdCamSlot::StartDecrypting(void) void cMtdCamSlot::StopDecrypting(void) { cCamSlot::StopDecrypting(); + if (!MasterSlot()->IsDecrypting()) + MasterSlot()->StopDecrypting(); mtdMapper->Clear(); clearBuffer = true; } -bool cMtdCamSlot::IsDecrypting(void) -{ - return cCamSlot::IsDecrypting(); -} - uchar *cMtdCamSlot::Decrypt(uchar *Data, int &Count) { // Send data to CAM: |