From 924738dfcbf0cb7af45800692f9829f0f50fc3fc Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Sun, 20 Apr 2014 18:37:34 +0300 Subject: bluray: BD-J: issue warning message if current video driver does not support ARGB overlays. --- src/input/input_bluray.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/input/input_bluray.c b/src/input/input_bluray.c index a4369e082..efa3f5f7a 100644 --- a/src/input/input_bluray.c +++ b/src/input/input_bluray.c @@ -1534,6 +1534,15 @@ static int get_disc_info(bluray_input_plugin_t *this) "Some titles can't be played in navigation mode", NULL); } + if (this->nav_mode && disc_info->num_bdj_titles > 0) { + if (!(this->stream->video_out->get_capabilities(this->stream->video_out) & VO_CAP_ARGB_LAYER_OVERLAY)) { + _x_message (this->stream, XINE_MSG_GENERAL_WARNING, + "BD-J titles found. Current video driver does not support ARGB graphics.", + "Try another video driver (ex. --video opengl2) or play this disc without menus.", + NULL); + } + } + this->num_titles = disc_info->num_hdmv_titles + disc_info->num_bdj_titles; this->disc_info = disc_info; -- cgit v1.2.3