aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2007-12-06 23:01:28 +0000
committerQball Cow <qball@qballcow.nl>2007-12-06 23:01:28 +0000
commitba48dc18fdb6c50f63236d59ce799be5fa3128db (patch)
treed7f92762255b909990cb2b4b9f7e2564c6af172c
parente1571cc70590929eedce2a6f7ae045f78484435f (diff)
downloadmpd-ba48dc18fdb6c50f63236d59ce799be5fa3128db.tar.gz
mpd-ba48dc18fdb6c50f63236d59ce799be5fa3128db.tar.xz
mpd-ba48dc18fdb6c50f63236d59ce799be5fa3128db.zip
Fix replaygain for latest flac version.
The updated initialize method did not tell the libFLAC to look for the tag containing the replay information. git-svn-id: https://svn.musicpd.org/mpd/trunk@7075 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/flac_plugin.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c
index cfa16ecea..d20feeb87 100644
--- a/src/inputPlugins/flac_plugin.c
+++ b/src/inputPlugins/flac_plugin.c
@@ -351,6 +351,15 @@ static int flac_decode_internal(OutputBuffer * cb, DecoderControl * dc,
if (!(flacDec = flac_new()))
return -1;
init_FlacData(&data, cb, dc, inStream);
+
+#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT > 7
+ if(!FLAC__stream_decoder_set_metadata_respond(flacDec, FLAC__METADATA_TYPE_VORBIS_COMMENT))
+ {
+ DEBUG(__FILE__": Failed to set metadata respond\n");
+ }
+#endif
+
+
if (is_ogg) {
if (!flac_ogg_init(flacDec, flacRead, flacSeek, flacTell,
flacLength, flacEOF, flacWrite, flacMetadata,