]> git.sesse.net Git - vlc/commitdiff
Bluray: fix issue when libbluray couldn't parse the meta info
authorSam Lade <sam@sentynel.com>
Sat, 19 Nov 2011 18:03:27 +0000 (19:03 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 19 Nov 2011 18:05:49 +0000 (19:05 +0100)
This is the case for BD of 2001

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/bluray.c

index 8bf1a4e05aa8e1fb524353881ecbc93574da405e..983eade33d95f5dfbaa09e1391e3a0dce94eab1b 100644 (file)
@@ -387,6 +387,9 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
         case DEMUX_GET_META:
         {
             struct meta_dl *meta = bd_get_meta(p_sys->bluray);
+            if(!meta)
+                return VLC_EGENERIC;
+
             vlc_meta_t *p_meta = (vlc_meta_t *) va_arg (args, vlc_meta_t*);
 
             if (!EMPTY_STR(meta->di_name)) vlc_meta_SetTitle(p_meta, meta->di_name);