decoder/flac: submit MixRamp only if there is actual data
This commit is contained in:
parent
cb5c6259fd
commit
1c69913eca
@ -78,7 +78,9 @@ FlacDecoder::OnVorbisComment(const FLAC__StreamMetadata_VorbisComment &vc)
|
|||||||
if (flac_parse_replay_gain(rgi, vc))
|
if (flac_parse_replay_gain(rgi, vc))
|
||||||
GetClient()->SubmitReplayGain(&rgi);
|
GetClient()->SubmitReplayGain(&rgi);
|
||||||
|
|
||||||
GetClient()->SubmitMixRamp(flac_parse_mixramp(vc));
|
if (auto mix_ramp = flac_parse_mixramp(vc);
|
||||||
|
mix_ramp.IsDefined())
|
||||||
|
GetClient()->SubmitMixRamp(std::move(mix_ramp));
|
||||||
|
|
||||||
tag = flac_vorbis_comments_to_tag(&vc);
|
tag = flac_vorbis_comments_to_tag(&vc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user