summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xine/BluRay/input_bluray.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xine/BluRay/input_bluray.c b/xine/BluRay/input_bluray.c
index 0c90ee57..ef84e13b 100644
--- a/xine/BluRay/input_bluray.c
+++ b/xine/BluRay/input_bluray.c
@@ -577,6 +577,9 @@ static int bluray_plugin_open (input_plugin_t *this_gen)
this->num_titles = bd_get_titles(this->bdh, TITLES_RELEVANT);
LOGMSG("%d titles\n", this->num_titles);
+ if (this->num_titles < 1)
+ return -1;
+
/* select title */
/* if title was not in mrl, find the main title */