diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index 2fa1fc53ae..8d1c58af08 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -522,6 +522,13 @@ static int control(stream_t *stream, int cmd, void *arg) } break; } + case STREAM_CTRL_GET_NUM_TITLES: { + int32_t num_titles = 0; + if (dvdnav_get_number_of_titles(dvdnav, &num_titles) != DVDNAV_STATUS_OK) + break; + *((unsigned int*)arg)= num_titles; + return STREAM_OK; + } case STREAM_CTRL_GET_CURRENT_TITLE: { if (dvdnav_current_title_info(dvdnav, &tit, &part) != DVDNAV_STATUS_OK) break;