[libbluray-devel] commit: gc_decode_ts(): initialie menu page to 0 and clear IG plane when decoding is complete. ( hpi1 )
git at videolan.org
git at videolan.org
Mon Nov 15 14:58:02 CET 2010
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Nov 15 15:38:36 2010 +0200| [bb46498d53cc8c89b30a58fe856a0211ef6d404b] | committer: hpi1
gc_decode_ts(): initialie menu page to 0 and clear IG plane when decoding is complete.
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=bb46498d53cc8c89b30a58fe856a0211ef6d404b
---
src/libbluray/decoders/graphics_controller.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index 26694ee..630bf2c 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -134,8 +134,6 @@ void gc_decode_ts(GRAPHICS_CONTROLLER *gc, uint16_t pid, uint8_t *block, unsigne
if (pid >= 0x1400 && pid < 0x1500) {
/* IG stream */
- gc->popup_visible = 0;
-
if (!gc->igp) {
gc->igp = graphics_processor_init();
}
@@ -146,7 +144,12 @@ void gc_decode_ts(GRAPHICS_CONTROLLER *gc, uint16_t pid, uint8_t *block, unsigne
return;
}
+ bd_psr_write(gc->regs, PSR_MENU_PAGE_ID, 0);
+
gc->ig_drawn = 0;
+ gc->popup_visible = 0;
+
+ _gc_clear_osd(gc, 1);
}
else if (pid >= 0x1200 && pid < 0x1300) {
More information about the libbluray-devel
mailing list