diff options
author | Max Kellermann <max@duempel.org> | 2009-03-01 14:07:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-01 14:07:23 +0100 |
commit | ba3a8474b6b3ef1355cf7173de2622adc34fce2e (patch) | |
tree | 5b01875ef08e4f529783e9e24bf5ee9844a14f4e /src/decoder/_flac_common.c | |
parent | 92db09fdf8d672fa6c78e726102ad66145d076f4 (diff) | |
download | mpd-ba3a8474b6b3ef1355cf7173de2622adc34fce2e.tar.gz mpd-ba3a8474b6b3ef1355cf7173de2622adc34fce2e.tar.xz mpd-ba3a8474b6b3ef1355cf7173de2622adc34fce2e.zip |
flac: parse stream tags
Parse the vorbis comments in libflac's metadata_callback and pass them
as tag struct to the decoder API.
Diffstat (limited to 'src/decoder/_flac_common.c')
-rw-r--r-- | src/decoder/_flac_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |