diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-23 18:00:18 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-23 18:00:18 +0000 |
| commit | e7a4be1d20a33dbd97acfa021db2f8b82bf7a844 (patch) | |
| tree | a7820c159e3a78df508536c3e491fd8e0b07cbc6 /lib/mmi | |
| parent | b3b1977dd9ef8a27d2b313d0c5934718ef682665 (diff) | |
| download | enigma2-e7a4be1d20a33dbd97acfa021db2f8b82bf7a844.tar.gz enigma2-e7a4be1d20a33dbd97acfa021db2f8b82bf7a844.zip | |
add socket mmi plugin,
fix some mmi bugs
Diffstat (limited to 'lib/mmi')
| -rw-r--r-- | lib/mmi/Makefile.am | 2 | ||||
| -rw-r--r-- | lib/mmi/mmi_ui.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/mmi/Makefile.am b/lib/mmi/Makefile.am index 020c988e..e6d6ebd4 100644 --- a/lib/mmi/Makefile.am +++ b/lib/mmi/Makefile.am @@ -3,4 +3,4 @@ INCLUDES = \ noinst_LIBRARIES = libenigma_mmi.a -libenigma_mmi_a_SOURCES = mmi_ui.cpp +libenigma_mmi_a_SOURCES = mmi_ui.cpp socket_mmi.cpp diff --git a/lib/mmi/mmi_ui.cpp b/lib/mmi/mmi_ui.cpp index 54b220cf..70124f33 100644 --- a/lib/mmi/mmi_ui.cpp +++ b/lib/mmi/mmi_ui.cpp @@ -40,17 +40,17 @@ int eMMI_UI::processMMIData(int slot_id, const unsigned char *tag, const void *d { unsigned char *d=(unsigned char*)data; int timeout=0; - if (d[3] == 1) + if (d[0] == 1) { - if (len > 4) - timeout = d[4]; + if (len > 1) + timeout = d[1]; else { eDebug("mmi close tag incorrect.. no timeout given.. assume 5 seconds"); timeout = 5; } } - else if (d[3] > 1) + else if (d[0] > 1) eDebug("mmi close tag incorrect.. byte 4 should be 0 or 1"); mmiScreenClose(slot_id, timeout); break; @@ -295,7 +295,7 @@ int eMMI_UI::mmiScreenFinish(int slot) void eMMI_UI::mmiSessionDestroyed(int slot) { - stateChanged(slot); + mmiScreenClose(slot, 0); } PyObject *eMMI_UI::getMMIScreen(int slot) |
