changeset 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 c1e25c011c54
children 284751bccd04
files libmpdemux/stream_dvd.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/stream_dvd.c	Mon Apr 10 12:42:10 2006 +0000
+++ b/libmpdemux/stream_dvd.c	Mon Apr 10 16:16:33 2006 +0000
@@ -469,6 +469,8 @@
 
     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);
     }