Commit d82547ac authored by Max Kellermann's avatar Max Kellermann

decoder/flac: pass VorbisComment to flac_parse_replay_gain()

parent 441f9cc2
......@@ -98,7 +98,7 @@ void flac_metadata_common_cb(const FLAC__StreamMetadata * block,
break;
case FLAC__METADATA_TYPE_VORBIS_COMMENT:
if (flac_parse_replay_gain(rgi, block))
if (flac_parse_replay_gain(rgi, block->data.vorbis_comment))
decoder_replay_gain(data->decoder, &rgi);
decoder_mixramp(data->decoder, flac_parse_mixramp(block));
......
......@@ -55,11 +55,8 @@ vorbis_comment_value(const FLAC__StreamMetadata *block,
bool
flac_parse_replay_gain(ReplayGainInfo &rgi,
const FLAC__StreamMetadata *block)
const FLAC__StreamMetadata_VorbisComment &vc)
{
const FLAC__StreamMetadata_VorbisComment &vc =
block->data.vorbis_comment;
rgi.Clear();
bool found = false;
......
......@@ -116,7 +116,7 @@ struct ReplayGainInfo;
bool
flac_parse_replay_gain(ReplayGainInfo &rgi,
const FLAC__StreamMetadata *block);
const FLAC__StreamMetadata_VorbisComment &vc);
MixRampInfo
flac_parse_mixramp(const FLAC__StreamMetadata *block);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment