[libbluray-devel] Emit BD_EVENT_MENU when ARGB overlay is opened / closed.

hpi1 git at videolan.org
Fri Apr 26 11:17:48 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Apr 26 12:15:07 2013 +0300| [d64c647e5d9d9e6ab3873a34c951ae84d530dba7] | committer: hpi1

Emit BD_EVENT_MENU when ARGB overlay is opened / closed.
This means menu is "on" always when BD-J title is running.
Could be fixed by opening overlay when root window is first drawn and closing it when title changes etc. ?

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

 src/libbluray/bluray.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index c50ccec..7ed969b 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1129,6 +1129,7 @@ static void _bdj_osd_cb(BLURAY *bd, const unsigned *img, int w, int h,
     BD_ARGB_OVERLAY aov;
 
     if (!bd || !bd->argb_overlay_proc) {
+        _queue_event(bd, BD_EVENT_MENU, 0);
         return;
     }
 
@@ -1142,8 +1143,10 @@ static void _bdj_osd_cb(BLURAY *bd, const unsigned *img, int w, int h,
             aov.cmd = BD_ARGB_OVERLAY_INIT;
             aov.w   = w;
             aov.h   = h;
+            _queue_event(bd, BD_EVENT_MENU, 1);
         } else {
             aov.cmd = BD_ARGB_OVERLAY_CLOSE;
+            _queue_event(bd, BD_EVENT_MENU, 0);
         }
 
         bd->argb_overlay_proc(bd->argb_overlay_proc_handle, &aov);



More information about the libbluray-devel mailing list