changeset 29366:fa9ca1188c50

Print information about chapters with -identify. Patch by Adrian Stutz [adrian sttz ch]
author reimar
date Sun, 28 Jun 2009 13:19:26 +0000
parents 794a26e68c2c
children 1d4dd0f12c98
files libmpdemux/demuxer.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Sun Jun 28 13:17:42 2009 +0000
+++ b/libmpdemux/demuxer.c	Sun Jun 28 13:19:26 2009 +0000
@@ -1328,6 +1328,13 @@
     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++;
 }