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_ui.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_ui.cpp')
| -rw-r--r-- | lib/dvb_ci/dvbci_ui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dvb_ci/dvbci_ui.cpp b/lib/dvb_ci/dvbci_ui.cpp index ddb42fdb..23911453 100644 --- a/lib/dvb_ci/dvbci_ui.cpp +++ b/lib/dvb_ci/dvbci_ui.cpp @@ -43,7 +43,11 @@ eDVBCI_UI *eDVBCI_UI::getInstance() int eDVBCI_UI::getState(int slot) { if (slot < MAX_SLOTS) + { + if (eDVBCIInterfaces::getInstance()->getSlotState(slot) == eDVBCISlot::stateInvalid) + eDVBCIInterfaces::getInstance()->reset(slot); return slotdata[slot].state; + } return 0; } |
