[vlc-commits] bluray: Check for bd_play failures.
Hugo Beauzée-Luyssen
git at videolan.org
Mon Mar 12 12:13:24 CET 2012
vlc/vlc-2.0 | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sat Mar 10 15:52:23 2012 +0100| [5f401c33aba636971555efb4cd1707b52d5a415b] | committer: Jean-Baptiste Kempf
bluray: Check for bd_play failures.
(cherry picked from commit 207e13c211c1af905bf567934457fd5c91031856)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=5f401c33aba636971555efb4cd1707b52d5a415b
---
modules/access/bluray.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index bf28cb8..34f3f4d 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -266,8 +266,10 @@ static int blurayOpen( vlc_object_t *object )
goto error;
/* libbluray will start playback from "First-Title" title */
- bd_play(p_sys->bluray);
-
+ if (bd_play(p_sys->bluray) == 0) {
+ error_msg = "Failed to start bluray playback. Please try without menu support.";
+ goto error;
+ }
/* Registering overlay event handler */
bd_register_overlay_proc(p_sys->bluray, p_demux, blurayOverlayProc);
} else {
More information about the vlc-commits
mailing list