diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-28 23:40:08 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-28 23:40:08 +0000 |
commit | 0e419d38c25f611240a93bc99eb7f6301fa77b8a (patch) | |
tree | b9241259746b8be245fdadf3c92fa7f651a7b53d /src/inputPlugins/flac_plugin.c | |
parent | 178e6c52635fa0f2c76095ab57de89b908028ff9 (diff) | |
download | mpd-0e419d38c25f611240a93bc99eb7f6301fa77b8a.tar.gz mpd-0e419d38c25f611240a93bc99eb7f6301fa77b8a.tar.xz mpd-0e419d38c25f611240a93bc99eb7f6301fa77b8a.zip |
set flac_metadata_respond(VORBIS_COMMENT) so that flac responds to vorbis comments and returns these to the metadata callback (so we can properly set the replaygain state)
git-svn-id: https://svn.musicpd.org/mpd/trunk@1707 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/flac_plugin.c')
-rw-r--r-- | src/inputPlugins/flac_plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c index 492d5a80a..eec99f233 100644 --- a/src/inputPlugins/flac_plugin.c +++ b/src/inputPlugins/flac_plugin.c @@ -110,6 +110,8 @@ int flac_decode(OutputBuffer * cb, DecoderControl *dc, char * path) { flacWrite); status&=FLAC__seekable_stream_decoder_set_metadata_callback(flacDec, flacMetadata); + status&=FLAC__seekable_stream_decoder_set_metadata_respond(flacDec, + FLAC__METADATA_TYPE_VORBIS_COMMENT); status&=FLAC__seekable_stream_decoder_set_error_callback(flacDec, flacError); status&=FLAC__seekable_stream_decoder_set_client_data(flacDec, |