libbluray | branch: master | hpi1 <[email protected]> | Fri Aug 23 10:04:57 
2013 +0300| [d8b3cd510e2335e1c53556d6487c00a81869dabe] | committer: hpi1

HDMV: consume key presses while running animations

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=d8b3cd510e2335e1c53556d6487c00a81869dabe
---

 src/libbluray/decoders/graphics_controller.c |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/libbluray/decoders/graphics_controller.c 
b/src/libbluray/decoders/graphics_controller.c
index b1c540d..c422454 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -1429,14 +1429,18 @@ static int _user_input(GRAPHICS_CONTROLLER *gc, 
uint32_t key, GC_NAV_CMDS *cmds)
         GC_TRACE("_user_input(): popup menu not visible\n");
         return -1;
     }
-    if (!gc->ig_drawn) {
-        GC_ERROR("_user_input(): menu not visible\n");
+    if (!gc->ig_open) {
+        GC_ERROR("_user_input(): menu not open\n");
         return -1;
     }
 
+    if (!gc->ig_drawn) {
+        GC_ERROR("_user_input(): menu not visible\n");
+        return 0;
+    }
     if (gc->button_effect_running) {
         GC_ERROR("_user_input(): button_effect_running\n");
-        return -1;
+        return 0;
     }
 
     GC_TRACE("_user_input(%d)\n", key);

_______________________________________________
libbluray-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libbluray-devel

Reply via email to