From ba3a8474b6b3ef1355cf7173de2622adc34fce2e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 1 Mar 2009 14:07:23 +0100 Subject: flac: parse stream tags Parse the vorbis comments in libflac's metadata_callback and pass them as tag struct to the decoder API. --- src/decoder/_flac_common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/decoder/_flac_common.c') diff --git a/src/decoder/_flac_common.c b/src/decoder/_flac_common.c index 6c2d19fd9..24c766ddb 100644 --- a/src/decoder/_flac_common.c +++ b/src/decoder/_flac_common.c @@ -187,6 +187,10 @@ void flac_metadata_common_cb(const FLAC__StreamMetadata * block, break; case FLAC__METADATA_TYPE_VORBIS_COMMENT: flac_parse_replay_gain(block, data); + + if (data->tag != NULL) + flac_vorbis_comments_to_tag(data->tag, block); + default: break; } -- cgit v1.2.3