Commit 5f401c33 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

bluray: Check for bd_play failures.

(cherry picked from commit 207e13c2)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 97c0d774
...@@ -266,8 +266,10 @@ static int blurayOpen( vlc_object_t *object ) ...@@ -266,8 +266,10 @@ static int blurayOpen( vlc_object_t *object )
goto error; goto error;
/* libbluray will start playback from "First-Title" title */ /* 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 */ /* Registering overlay event handler */
bd_register_overlay_proc(p_sys->bluray, p_demux, blurayOverlayProc); bd_register_overlay_proc(p_sys->bluray, p_demux, blurayOverlayProc);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment