[libbluray-devel] Do not set GC_STATUS_ANIMATE when menu overlay is closed ( was triggered if hidden pop-up menu has animation effects)
hpi1
git at videolan.org
Fri Aug 2 16:23:51 CEST 2013
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Aug 2 17:20:27 2013 +0300| [2c42c4aba1bf4d0653db6c2d10a816c3c710975a] | committer: hpi1
Do not set GC_STATUS_ANIMATE when menu overlay is closed (was triggered if hidden pop-up menu has animation effects)
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=2c42c4aba1bf4d0653db6c2d10a816c3c710975a
---
src/libbluray/decoders/graphics_controller.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index 0467362..6a1d44b 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -1919,7 +1919,12 @@ int gc_run(GRAPHICS_CONTROLLER *gc, gc_ctrl_e ctrl, uint32_t param, GC_NAV_CMDS
cmds->status |= GC_STATUS_MENU_OPEN;
}
if (gc->in_effects || gc->out_effects || gc->button_animation_running) {
- cmds->status |= GC_STATUS_ANIMATE;
+ /* do not trigger if unopened pop-up menu has animations */
+ if (gc->ig_open) {
+ cmds->status |= GC_STATUS_ANIMATE;
+ /* user input is still not handled, but user "sees" the menu. */
+ cmds->status |= GC_STATUS_MENU_OPEN;
+ }
}
}
More information about the libbluray-devel
mailing list