From ba9ccc12a5ec96dd07654417b378257200958d17 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 16 Jun 2020 14:33:32 +0200 Subject: Added cMtdHandler::StopDecrypting() --- mtd.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'mtd.c') 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(); -- cgit v1.2.3