[vlc-commits] bluray: Check for bd_play failures.
Hugo Beauzée-Luyssen
git at videolan.org
Sat Mar 10 15:56:53 CET 2012
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sat Mar 10 15:52:23 2012 +0100| [207e13c211c1af905bf567934457fd5c91031856] | committer: Hugo Beauzée-Luyssen
bluray: Check for bd_play failures.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=207e13c211c1af905bf567934457fd5c91031856
---
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 303c3db..f5b3dcb 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -268,8 +268,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