diff options
-rw-r--r-- | xine/BluRay/input_bluray.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xine/BluRay/input_bluray.c b/xine/BluRay/input_bluray.c index b471c6cb..aeff53d5 100644 --- a/xine/BluRay/input_bluray.c +++ b/xine/BluRay/input_bluray.c @@ -142,6 +142,10 @@ static int open_title (bluray_input_plugin_t *this, int title) if (this->title_info) bd_free_title_info(this->title_info); this->title_info = bd_get_title_info(this->bdh, this->current_title); + if (!this->title_info) { + LOGMSG("bd_get_title_info(%d) failed\n", this->current_title); + return 0; + } #ifdef LOG int ms = this->title_info->duration / INT64_C(90000); |