diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-06-16 14:33:32 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-06-16 14:33:32 +0200 |
commit | ba9ccc12a5ec96dd07654417b378257200958d17 (patch) | |
tree | 1497355794ea0e32c58cdf16e34194620921da1d /mtd.c | |
parent | 67ea2163f41de6f0b42a32c25e82c7ea23b8570f (diff) | |
download | vdr-ba9ccc12a5ec96dd07654417b378257200958d17.tar.gz vdr-ba9ccc12a5ec96dd07654417b378257200958d17.tar.bz2 |
Added cMtdHandler::StopDecrypting()
Diffstat (limited to 'mtd.c')
-rw-r--r-- | mtd.c | 12 |
1 files changed, 9 insertions, 3 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.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(); |