summaryrefslogtreecommitdiff
path: root/mtd.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 /mtd.c
parent67ea2163f41de6f0b42a32c25e82c7ea23b8570f (diff)
downloadvdr-ba9ccc12a5ec96dd07654417b378257200958d17.tar.gz
vdr-ba9ccc12a5ec96dd07654417b378257200958d17.tar.bz2
Added cMtdHandler::StopDecrypting()
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();