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
This commit is contained in:
parent
e1571cc705
commit
ba48dc18fd
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue