summaryrefslogtreecommitdiff
path: root/ci.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-03-23 15:20:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-03-23 15:20:00 +0100
commitbe06e04d5583264f67d365d2fe32ebe89472c722 (patch)
tree8be2785871bec004e19cc505fbae329d08230d0a /ci.c
parente76f9858400b0fa0df8feadbd891ab9066f76a14 (diff)
downloadvdr-be06e04d5583264f67d365d2fe32ebe89472c722.tar.gz
vdr-be06e04d5583264f67d365d2fe32ebe89472c722.tar.bz2
CAM access only for CA channels and no longer during replay
Diffstat (limited to 'ci.c')
-rw-r--r--ci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ci.c b/ci.c
index 62bbed7e..a3d64df3 100644
--- a/ci.c
+++ b/ci.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ci.c 1.8 2003/03/16 22:32:47 kls Exp $
+ * $Id: ci.c 1.9 2003/03/23 15:18:40 kls Exp $
*/
/* XXX TODO
@@ -1273,6 +1273,7 @@ void cCiCaPmt::AddCaDescriptor(int Length, uint8_t *Data)
cCiHandler::cCiHandler(int Fd, int NumSlots)
{
numSlots = NumSlots;
+ enabled = true;
for (int i = 0; i < MAX_CI_SESSION; i++)
sessions[i] = NULL;
tpl = new cCiTransportLayer(Fd, numSlots);
@@ -1425,6 +1426,8 @@ int cCiHandler::CloseAllSessions(int Slot)
bool cCiHandler::Process(void)
{
+ if (!enabled)
+ return false;
bool result = true;
cMutexLock MutexLock(&mutex);
for (int Slot = 0; Slot < numSlots; Slot++) {