[MPlayer-cvslog] r29408 - trunk/libmpdemux/demuxer.c

reimar subversion at mplayerhq.hu
Sun Jun 28 15:19:27 CEST 2009


Author: reimar
Date: Sun Jun 28 15:19:26 2009
New Revision: 29408

Log:
Print information about chapters with -identify.
Patch by Adrian Stutz [adrian sttz ch]

Modified:
   trunk/libmpdemux/demuxer.c

Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c	Sun Jun 28 15:17:42 2009	(r29407)
+++ trunk/libmpdemux/demuxer.c	Sun Jun 28 15:19:26 2009	(r29408)
@@ -1328,6 +1328,13 @@ int demuxer_add_chapter(demuxer_t *demux
     demuxer->chapters[demuxer->num_chapters].end = end;
     demuxer->chapters[demuxer->num_chapters].name = strdup(name ? name : MSGTR_Unknown);
 
+    mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_CHAPTER_ID=%d\n", demuxer->num_chapters);
+    mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_CHAPTER_%d_START=%"PRIu64"\n", demuxer->num_chapters, start);
+    if (end)
+        mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_CHAPTER_%d_END=%"PRIu64"\n", demuxer->num_chapters, end);
+    if (name)
+        mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_CHAPTER_%d_NAME=%s\n", demuxer->num_chapters, name);
+
     return demuxer->num_chapters++;
 }
 


More information about the MPlayer-cvslog mailing list