[libbluray-devel] commit: _user_input(): return if page not found (hpi1 )

git at videolan.org git at videolan.org
Mon Oct 25 11:50:00 CEST 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Oct 18 15:49:03 2010 +0300| [4c14f4f63864fc59c513112bb808da5373aa348e] | committer: hpi1 

_user_input(): return if page not found

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

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

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index 3d634d9..4e7817f 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -365,6 +365,7 @@ static void _user_input(GRAPHICS_CONTROLLER *gc, bd_vk_key_e key, GC_NAV_CMDS *c
     if (!page) {
         ERROR("_user_input(): unknown page id %d (have %d pages)\n",
               page_id, s->ics->interactive_composition.num_pages);
+        return;
     }
 
     for (ii = 0; ii < page->num_bogs; ii++) {



More information about the libbluray-devel mailing list