diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-05-22 15:21:41 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-05-22 15:21:41 +0000 |
| commit | d43e4676bd757d1de73b8dd669154ffd42192b10 (patch) | |
| tree | bc2fc75985ed28aefeaef89733b785f2838b9f91 /lib/dvb_ci/dvbci.cpp | |
| parent | 778e07c733576c6ca23e75bfd05932159ec4dd29 (diff) | |
| download | enigma2-d43e4676bd757d1de73b8dd669154ffd42192b10.tar.gz enigma2-d43e4676bd757d1de73b8dd669154ffd42192b10.zip | |
fix bluescreen in ci menu when no entries in a menulist an ok is pressed
reset CI when opening CI Menu and ci is not initialized yet
Diffstat (limited to 'lib/dvb_ci/dvbci.cpp')
| -rw-r--r-- | lib/dvb_ci/dvbci.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp index 6f532bed..b182a360 100644 --- a/lib/dvb_ci/dvbci.cpp +++ b/lib/dvb_ci/dvbci.cpp @@ -66,6 +66,16 @@ eDVBCISlot *eDVBCIInterfaces::getSlot(int slotid) return 0; } +int eDVBCIInterfaces::getSlotState(int slotid) +{ + eDVBCISlot *slot; + + if( (slot = getSlot(slotid)) == 0 ) + return eDVBCISlot::stateInvalid; + + return slot->getState(); +} + int eDVBCIInterfaces::reset(int slotid) { eDVBCISlot *slot; |
