[vlc-commits] Bluray: fix issue when libbluray couldn't parse the meta info

Sam Lade git at videolan.org
Sat Nov 19 19:05:58 CET 2011


vlc | branch: master | Sam Lade <sam at sentynel.com> | Sat Nov 19 19:03:27 2011 +0100| [0fb207f2431f23cbea71e5e4ac587ec510ca264a] | committer: Jean-Baptiste Kempf

Bluray: fix issue when libbluray couldn't parse the meta info

This is the case for BD of 2001

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0fb207f2431f23cbea71e5e4ac587ec510ca264a
---

 modules/access/bluray.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 8bf1a4e..983eade 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -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);



More information about the vlc-commits mailing list