[MPlayer-cvslog] CVS: main/libmpdemux stream_dvd.c,1.12,1.13

Reimar Döffinger CVS syncmail at mplayerhq.hu
Mon Apr 10 18:16:36 CEST 2006


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv24569

Modified Files:
	stream_dvd.c 
Log Message:
do not print the title length from a non-matching titleset.
Fixes ID_DVD_TITLE_.._LENGTH appearing multiple times, and only once != 0.


Index: stream_dvd.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream_dvd.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- stream_dvd.c	11 Mar 2006 23:29:02 -0000	1.12
+++ stream_dvd.c	10 Apr 2006 16:16:33 -0000	1.13
@@ -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);
     }




More information about the MPlayer-cvslog mailing list