[MPlayer-cvslog] r32539 - trunk/stream/stream_dvd.c

cigaes subversion at mplayerhq.hu
Wed Oct 27 16:57:52 CEST 2010


Author: cigaes
Date: Wed Oct 27 16:57:52 2010
New Revision: 32539

Log:
stream_dvd: millisecond accuracy for chapters in -identify output.

Modified:
   trunk/stream/stream_dvd.c

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	Wed Oct 27 09:32:52 2010	(r32538)
+++ trunk/stream/stream_dvd.c	Wed Oct 27 16:57:52 2010	(r32539)
@@ -542,7 +542,7 @@ static int seek_to_chapter(stream_t *str
 static void list_chapters(ifo_handle_t *vts_file, tt_srpt_t *tt_srpt, int title_no)
 {
     unsigned int i, cell, last_cell;
-    unsigned int t=0, t2=0;
+    unsigned int t=0;
     ptt_info_t *ptt;
     pgc_t *pgc;
 
@@ -560,8 +560,7 @@ static void list_chapters(ifo_handle_t *
             last_cell = pgc->program_map[ptt[i].pgn];
         else
             last_cell = 0;
-        t2 = t/1000;
-        mp_msg(MSGT_IDENTIFY, MSGL_INFO, "%02d:%02d:%02d,", t2/3600, (t2/60)%60, t2%60);
+        mp_msg(MSGT_IDENTIFY, MSGL_INFO, "%02d:%02d:%02d.%03d,", t/3600000, (t/60000)%60, (t/1000)%60, t%1000);
         do {
             if(!(pgc->cell_playback[cell-1].block_type == BLOCK_TYPE_ANGLE_BLOCK &&
                  pgc->cell_playback[cell-1].block_mode != BLOCK_MODE_FIRST_CELL)


More information about the MPlayer-cvslog mailing list