summaryrefslogtreecommitdiff
path: root/mtd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mtd.c')
-rw-r--r--mtd.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mtd.c b/mtd.c
index f2c51027..7536dcf8 100644
--- a/mtd.c
+++ b/mtd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: mtd.c 1.15 2020/06/16 14:25:43 kls Exp $
+ * $Id: mtd.c 1.16 2020/06/16 14:33:32 kls Exp $
*/
#include "mtd.h"
@@ -112,6 +112,14 @@ void cMtdHandler::StartDecrypting(void)
}
}
+void cMtdHandler::StopDecrypting(void)
+{
+ for (int i = 0; i < camSlots.Size(); i++) {
+ if (camSlots[i]->Device())
+ camSlots[i]->StopDecrypting();
+ }
+}
+
void cMtdHandler::CancelActivation(void)
{
for (int i = 0; i < camSlots.Size(); i++)
@@ -292,8 +300,6 @@ void cMtdCamSlot::StartDecrypting(void)
void cMtdCamSlot::StopDecrypting(void)
{
cCamSlot::StopDecrypting();
- if (!MasterSlot()->IsDecrypting())
- MasterSlot()->StopDecrypting();
cMutexLock MutexLock(&clearMutex);
mtdMapper->Clear();
mtdBuffer->Clear();