]> git.sesse.net Git - vlc/commitdiff
bluray: fix setting parent input
authorPetri Hintukainen <phintuka@users.sourceforge.net>
Wed, 12 Feb 2014 20:37:50 +0000 (22:37 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 13 Feb 2014 11:58:48 +0000 (12:58 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/bluray.c

index d50bc689bc412179fa73044b96c0931624dc9894..c7e27b328b723e76427074b24f5349944bc794d6 100644 (file)
@@ -393,13 +393,13 @@ static int blurayOpen(vlc_object_t *object)
 
     /* Registering overlay event handler */
     bd_register_overlay_proc(p_sys->bluray, p_demux, blurayOverlayProc);
+    p_sys->p_input = demux_GetParentInput(p_demux);
+    if (unlikely(!p_sys->p_input)) {
+        msg_Err(p_demux, "Could not get parent input");
+        goto error;
+    }
 
     if (p_sys->b_menu) {
-        p_sys->p_input = demux_GetParentInput(p_demux);
-        if (unlikely(!p_sys->p_input)) {
-            msg_Err(p_demux, "Could not get parent input");
-            goto error;
-        }
 
         /* Register ARGB overlay handler for BD-J */
         if (disc_info->num_bdj_titles)