Commit 34fc9eff authored by conrad's avatar conrad

pretty up the output of dump-comments, include content type and serialno.

Tested with chained vorbis files.

git-svn-id: 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 822de665
......@@ -46,18 +46,25 @@ read_comments (OGGZ * oggz, long serialno)
const OggzComment * comment;
const char * vendor;
const char * content_type;
content_type = oggz_stream_get_content_type (oggz, serialno);
printf ("%s: serial %010ld\n\n", content_type, serialno);
vendor = oggz_comment_get_vendor (oggz, serialno);
if (vendor) puts (vendor);
if (vendor) printf (" Vendor: %s\r\n", vendor);
for (comment = oggz_comment_first (oggz, serialno); comment;
comment = oggz_comment_next (oggz, serialno, comment)) {
if (comment->value) {
printf ("%s: %s\r\n", comment->name, comment->value);
printf (" %s: %s\r\n", comment->name, comment->value);
} else {
printf ("%s\r\n", comment->name);
printf (" %s\r\n", comment->name);
puts ("\r\n");
static int
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment