[libbluray-devel] HDMV: consume key presses while running animations

hpi1 git at videolan.org
Fri Aug 23 09:26:18 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | 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);



More information about the libbluray-devel mailing list