1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-19 05:41:16 +00:00

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
This commit is contained in:
reimar 2006-04-10 16:16:33 +00:00
parent cfcf67ee5e
commit 3e489b2da7

View File

@ -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);
}