Commit e869fd33 authored by Josh Coalson's avatar Josh Coalson
Browse files

add vorbis comment to --list

parent 66075c15
......@@ -1504,6 +1504,15 @@ void write_metadata(const char *filename, FLAC__StreamMetaData *block, unsigned
}
break;
case FLAC__METADATA_TYPE_VORBIS_COMMENT:
PPR; printf(" vendor string: ");
fwrite(block->data.vorbis_comment.vendor_string.entry, 1, block->data.vorbis_comment.vendor_string.length, stdout);
printf("\n");
PPR; printf(" comments: %u\n", block->data.vorbis_comment.num_comments);
for(i = 0; i < block->data.vorbis_comment.num_comments; i++) {
PPR; printf(" comment[%u]: ", i);
fwrite(block->data.vorbis_comment.comments[i].entry, 1, block->data.vorbis_comment.comments[i].length, stdout);
printf("\n");
}
break;
default:
PPR; printf("SKIPPING block of unknown type\n");
......
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