[vlc-commits] bluray: Fetching meta info isn't mandatory.

Hugo Beauzée-Luyssen git at videolan.org
Sun Mar 11 16:00:42 CET 2012


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Mar 11 15:50:49 2012 +0100| [12bb4f9d52832dafb493d0c0241b154cbdce251e] | committer: Hugo Beauzée-Luyssen

bluray: Fetching meta info isn't mandatory.

This should fix bluray playback on windows.

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

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

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 5c33b10..31f3fe4 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -250,7 +250,7 @@ static int blurayOpen( vlc_object_t *object )
     /* Get titles and chapters */
     p_sys->p_meta = bd_get_meta(p_sys->bluray);
     if (!p_sys->p_meta)
-        goto error;
+        msg_Warn(p_demux, "Failed to get meta info." );
 
     if (blurayInitTitles(p_demux) != VLC_SUCCESS) {
         goto error;
@@ -912,6 +912,8 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
         {
             vlc_meta_t *p_meta = (vlc_meta_t *) va_arg (args, vlc_meta_t*);
             const META_DL *meta = p_sys->p_meta;
+            if (meta == NULL)
+                return VLC_EGENERIC;
 
             if (!EMPTY_STR(meta->di_name)) vlc_meta_SetTitle(p_meta, meta->di_name);
 



More information about the vlc-commits mailing list