summaryrefslogtreecommitdiff
path: root/ci.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-06-16 14:33:32 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2020-06-16 14:33:32 +0200
commitba9ccc12a5ec96dd07654417b378257200958d17 (patch)
tree1497355794ea0e32c58cdf16e34194620921da1d /ci.c
parent67ea2163f41de6f0b42a32c25e82c7ea23b8570f (diff)
downloadvdr-ba9ccc12a5ec96dd07654417b378257200958d17.tar.gz
vdr-ba9ccc12a5ec96dd07654417b378257200958d17.tar.bz2
Added cMtdHandler::StopDecrypting()
Diffstat (limited to 'ci.c')
-rw-r--r--ci.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ci.c b/ci.c
index 2f399be2..7d001a4f 100644
--- a/ci.c
+++ b/ci.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ci.c 4.27 2020/06/16 14:25:43 kls Exp $
+ * $Id: ci.c 4.28 2020/06/16 14:33:32 kls Exp $
*/
#include "ci.h"
@@ -2757,9 +2757,13 @@ void cCamSlot::StartDecrypting(void)
void cCamSlot::StopDecrypting(void)
{
cMutexLock MutexLock(&mutex);
+ if (mtdHandler) {
+ mtdHandler->StopDecrypting();
+ return;
+ }
if (caProgramList.Count()) {
caProgramList.Clear();
- if (!dynamic_cast<cMtdCamSlot *>(this))
+ if (!dynamic_cast<cMtdCamSlot *>(this) || !MasterSlot()->IsDecrypting())
SendCaPmt(CPCI_NOT_SELECTED);
}
}