diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2005-08-21 18:00:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2005-08-21 18:00:00 +0200 |
commit | dab203efe9e24f1dade33ee1da6a39b26f8501f0 (patch) | |
tree | 9399cbee3798f5232eddca484e118275fe8e472e /ci.c | |
parent | ddd1e13e53c4970058884e2af31c2681617e7bf3 (diff) | |
download | vdr-patch-lnbsharing-dab203efe9e24f1dade33ee1da6a39b26f8501f0.tar.gz vdr-patch-lnbsharing-dab203efe9e24f1dade33ee1da6a39b26f8501f0.tar.bz2 |
Version 1.3.30vdr-1.3.30
- Improved responsiveness inside CAM menus.
- Added handling of the 'Close MMI' tag to avoid error log messages with CAMs
that actually use it.
- Now waiting at startup until all DVB devices are ready. This includes having
all CAMs initialized and ready to decrypt, so that no more "channel not
available" happens if VDR is started with the current channel being an encrypted
one, or a timer on such a channel hits right after starting VDR.
- Fixed cVideoRepacker to better handle errors in data (thanks to Reinhard Nissl).
- Fixed cDvbTuner to avoid lockups on NPTL systems (thanks to Marcel Wiesweg).
- Added 'Service' functions to the plugin interface (thanks to Udo Richter).
See PLUGINS.html, section "Custom services" for details.
- Replaced the get/put_unaligned() macros from <asm/unaligned.h> with own inline
functions to avoid problems on platforms that don't provide these (thanks to
David Woodhouse for his help).
Diffstat (limited to 'ci.c')
-rw-r--r-- | ci.c | 32 |
1 files changed, 30 insertions, 2 deletions
@@ -4,11 +4,10 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: ci.c 1.24 2005/06/04 11:57:05 kls Exp $ + * $Id: ci.c 1.27 2005/08/21 14:10:27 kls Exp $ */ #include "ci.h" -#include <asm/unaligned.h> #include <ctype.h> #include <linux/dvb/ca.h> #include <malloc.h> @@ -1136,6 +1135,19 @@ bool cCiMMI::Process(int Length, const uint8_t *Data) } } break; + case AOT_CLOSE_MMI: { + int id = -1; + int delay = -1; + int l = 0; + const uint8_t *d = GetData(Data, l); + if (l > 0) { + id = *d++; + if (l > 1) + delay = *d; + } + dbgprotocol("%d: <== Close MMI id = %02X delay = %d\n", SessionId(), id, delay); + } + break; default: esyslog("ERROR: CI MMI: unknown tag %06X", Tag); return false; } @@ -1341,6 +1353,8 @@ cCiHandler::cCiHandler(int Fd, int NumSlots) hasUserIO = false; for (int i = 0; i < MAX_CI_SESSION; i++) sessions[i] = NULL; + for (int i = 0; i < MAX_CI_SLOT; i++) + moduleReady[i] = false; tpl = new cCiTransportLayer(Fd, numSlots); tc = NULL; } @@ -1493,6 +1507,19 @@ int cCiHandler::CloseAllSessions(int Slot) return result; } +bool cCiHandler::Ready(void) +{ + cMutexLock MutexLock(&mutex); + for (int Slot = 0; Slot < numSlots; Slot++) { + if (moduleReady[Slot]) { + cCiConditionalAccessSupport *cas = (cCiConditionalAccessSupport *)GetSessionByResourceId(RI_CONDITIONAL_ACCESS_SUPPORT, Slot); + if (!cas || !*cas->GetCaSystemIds()) + return false; + } + } + return true; +} + bool cCiHandler::Process(void) { bool result = true; @@ -1530,6 +1557,7 @@ bool cCiHandler::Process(void) } else if (tpl->ModuleReady(Slot)) { dbgprotocol("Module ready in slot %d\n", Slot); + moduleReady[Slot] = true; tpl->NewConnection(Slot); } } |