diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-25 11:51:28 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-25 11:51:28 +0200 |
commit | b92bb866f6b46752cd8bd79817464ebf660a8a16 (patch) | |
tree | e39155da8d55916a7ecca8014411045449052959 /ci.c | |
parent | 4289180a03b933efe7e922e71c1b9c7da7f481ad (diff) | |
download | vdr-b92bb866f6b46752cd8bd79817464ebf660a8a16.tar.gz vdr-b92bb866f6b46752cd8bd79817464ebf660a8a16.tar.bz2 |
The cCiHandler now closes its file handle when it gets destroyed
Diffstat (limited to 'ci.c')
-rw-r--r-- | ci.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: ci.c 1.14 2003/04/20 09:52:45 kls Exp $ + * $Id: ci.c 1.15 2003/05/25 11:45:11 kls Exp $ */ /* XXX TODO @@ -1287,6 +1287,7 @@ void cCiCaPmt::AddCaDescriptor(int Length, uint8_t *Data) cCiHandler::cCiHandler(int Fd, int NumSlots) { + fd = Fd; numSlots = NumSlots; newCaSupport = false; hasUserIO = false; @@ -1301,6 +1302,7 @@ cCiHandler::~cCiHandler() for (int i = 0; i < MAX_CI_SESSION; i++) delete sessions[i]; delete tpl; + close(fd); } cCiHandler *cCiHandler::CreateCiHandler(const char *FileName) |