From bc5e539d3ba1644853fe90df6a9c5d5b4be304e8 Mon Sep 17 00:00:00 2001 From: tholin Date: Thu, 3 Jul 2014 23:27:49 +0200 Subject: stream_dvdnav: check the length of all titles with dvdnav://longest The last title was ignored before. CC: @mpv-player/stable Signed-off-by: wm4 --- stream/stream_dvdnav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index 6b5b4ef14b..9be03c6914 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -698,7 +698,7 @@ static int open_s(stream_t *stream) int best_title = -1; int32_t num_titles; if (dvdnav_get_number_of_titles(dvdnav, &num_titles) == DVDNAV_STATUS_OK) { - for (int n = 1; n < num_titles; n++) { + for (int n = 1; n <= num_titles; n++) { uint64_t *parts = NULL, duration = 0; dvdnav_describe_title_chapters(dvdnav, n, &parts, &duration); if (parts) { -- cgit v1.2.3