[libbluray-devel] Added GC_CTRL_INIT_MENU

hpi1 git at videolan.org
Wed Oct 19 13:34:30 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Oct 19 14:19:29 2011 +0300| [07176c494f27bd7205a2e6ca9cd746ed066be978] | committer: hpi1

Added GC_CTRL_INIT_MENU

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

 src/libbluray/decoders/graphics_controller.c |    5 +++++
 src/libbluray/decoders/graphics_controller.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index 8b33b81..3f1fa8a 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -1036,6 +1036,11 @@ int gc_run(GRAPHICS_CONTROLLER *gc, gc_ctrl_e ctrl, uint32_t param, GC_NAV_CMDS
             _render_page(gc, 0xffff, cmds);
             break;
 
+        case GC_CTRL_INIT_MENU:
+            _select_page(gc, 0);
+            _render_page(gc, 0xffff, cmds);
+            break;
+
         case GC_CTRL_IG_END:
             _update_selected_button(gc);
             _render_page(gc, 0xffff, cmds);
diff --git a/src/libbluray/decoders/graphics_controller.h b/src/libbluray/decoders/graphics_controller.h
index 33efdd2..f8fee74 100644
--- a/src/libbluray/decoders/graphics_controller.h
+++ b/src/libbluray/decoders/graphics_controller.h
@@ -41,6 +41,7 @@ typedef void (*gc_overlay_proc_f)(void *, const struct bd_overlay_s * const);
 
 typedef enum {
     /* */
+    GC_CTRL_INIT_MENU,       /* */
     GC_CTRL_NOP,             /* No input. Render page / run timers / run animations */
     GC_CTRL_RESET,           /* reset graphics controller */
 



More information about the libbluray-devel mailing list