[libbluray-devel] _select_page(): no need to clear overlay if it is not open/visible
hpi1
git at videolan.org
Sun Dec 11 15:25:48 CET 2011
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Dec 11 16:23:59 2011 +0200| [4c5ecab32ffcda46856b518faeb344b62507d8f7] | committer: hpi1
_select_page(): no need to clear overlay if it is not open/visible
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=4c5ecab32ffcda46856b518faeb344b62507d8f7
---
src/libbluray/decoders/graphics_controller.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index 6822717..e35fb43 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -503,7 +503,9 @@ static void _select_button(GRAPHICS_CONTROLLER *gc, uint32_t button_id)
static void _select_page(GRAPHICS_CONTROLLER *gc, uint16_t page_id)
{
bd_psr_write(gc->regs, PSR_MENU_PAGE_ID, page_id);
- _clear_osd(gc, BD_OVERLAY_IG);
+ if (gc->ig_open) {
+ _clear_osd(gc, BD_OVERLAY_IG);
+ }
_reset_page_state(gc);
uint16_t button_id = _find_selected_button_id(gc);
More information about the libbluray-devel
mailing list