summaryrefslogtreecommitdiff
path: root/mtd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-04-26 09:18:26 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-04-26 09:18:26 +0200
commita1fda4f2182b99404cef8dca44e388d3482b2f69 (patch)
treefa39c30544b969a805baa8cbb811d068396cc903 /mtd.c
parent1a31974789d2e9e78f0ae6bc5ab776c0f8f1db6a (diff)
downloadvdr-a1fda4f2182b99404cef8dca44e388d3482b2f69.tar.gz
vdr-a1fda4f2182b99404cef8dca44e388d3482b2f69.tar.bz2
Fixed a possible crash when pulling the CAM while decrypting a channel with MTD (cont'd)
Diffstat (limited to 'mtd.c')
-rw-r--r--mtd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mtd.c b/mtd.c
index bf792dd9..29fe520f 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.9 2017/03/27 14:26:04 kls Exp $
+ * $Id: mtd.c 1.10 2017/04/26 08:33:54 kls Exp $
*/
#include "mtd.h"
@@ -136,6 +136,12 @@ bool cMtdHandler::Devices(cVector<int> &CardIndexes)
return CardIndexes.Size() > 0;
}
+void cMtdHandler::UnAssignAll(void)
+{
+ for (int i = 0; i < camSlots.Size(); i++)
+ camSlots[i]->Assign(NULL);
+}
+
// --- cMtdMapper ------------------------------------------------------------
#define MTD_INVALID_PID 0xFFFF