Mercurial > mplayer.hg
comparison libmpdemux/stream_dvd.c @ 18071:1e144ef9759b
do not print the title length from a non-matching titleset.
Fixes ID_DVD_TITLE_.._LENGTH appearing multiple times, and only once != 0.
author | reimar |
---|---|
date | Mon, 10 Apr 2006 16:16:33 +0000 |
parents | 560617cdcc3b |
children | aeb937690d3d |
comparison
equal
deleted
inserted
replaced
18070:c1e25c011c54 | 18071:1e144ef9759b |
---|---|
467 if(!vts_file->vtsi_mat || !vts_file->vts_pgcit) | 467 if(!vts_file->vtsi_mat || !vts_file->vts_pgcit) |
468 return 0; | 468 return 0; |
469 | 469 |
470 for(title_no = 0; title_no < tt_srpt->nr_of_srpts; title_no++) | 470 for(title_no = 0; title_no < tt_srpt->nr_of_srpts; title_no++) |
471 { | 471 { |
472 if (tt_srpt->title[title_no].title_set_nr != vts_no) | |
473 continue; | |
472 msec = mp_get_titleset_length(vts_file, tt_srpt, vts_no, title_no); | 474 msec = mp_get_titleset_length(vts_file, tt_srpt, vts_no, title_no); |
473 mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_DVD_TITLE_%d_LENGTH=%d.%03d\n", title_no + 1, msec / 1000, msec % 1000); | 475 mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_DVD_TITLE_%d_LENGTH=%d.%03d\n", title_no + 1, msec / 1000, msec % 1000); |
474 } | 476 } |
475 ifoClose(vts_file); | 477 ifoClose(vts_file); |
476 } | 478 } |