[vlc-commits] bluray: Don't fail silently.

Rafaël Carré git at videolan.org
Mon Mar 12 12:13:25 CET 2012


vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Sun Mar 11 15:57:31 2012 +0100| [e0bd1e86add317c39b23619608c0d97bbb6c5f37] | committer: Jean-Baptiste Kempf

bluray: Don't fail silently.
(cherry picked from commit db56ab24bcd6319316fc1d0308ed28b66a8d5477)

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

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

 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 833ccf0..6444ef7 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -262,8 +262,10 @@ static int blurayOpen( vlc_object_t *object )
     p_sys->b_menu = var_InheritBool(p_demux, "bluray-menu");
     if (p_sys->b_menu) {
         p_sys->p_input = demux_GetParentInput(p_demux);
-        if (unlikely(!p_sys->p_input))
+        if (unlikely(!p_sys->p_input)) {
+            error_msg = "Could not get parent input";
             goto error;
+        }
 
         /* libbluray will start playback from "First-Title" title */
         if (bd_play(p_sys->bluray) == 0) {



More information about the vlc-commits mailing list