From 3e489b2da7952712b99eb238d27849fecfec250c Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 10 Apr 2006 16:16:33 +0000 Subject: do not print the title length from a non-matching titleset. Fixes ID_DVD_TITLE_.._LENGTH appearing multiple times, and only once != 0. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18072 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/stream_dvd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmpdemux/stream_dvd.c b/libmpdemux/stream_dvd.c index f830e2a0a9..df5d438fba 100644 --- a/libmpdemux/stream_dvd.c +++ b/libmpdemux/stream_dvd.c @@ -469,6 +469,8 @@ static int mp_describe_titleset(dvd_reader_t *dvd, tt_srpt_t *tt_srpt, int vts_n for(title_no = 0; title_no < tt_srpt->nr_of_srpts; title_no++) { + if (tt_srpt->title[title_no].title_set_nr != vts_no) + continue; msec = mp_get_titleset_length(vts_file, tt_srpt, vts_no, title_no); mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_DVD_TITLE_%d_LENGTH=%d.%03d\n", title_no + 1, msec / 1000, msec % 1000); } -- cgit v1.2.3