don't call replaygain and cause preamp to beused if no replaygain tag exists
git-svn-id: https://svn.musicpd.org/mpd/trunk@2026 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -352,16 +352,16 @@ void flacParseReplayGain(const FLAC__StreamMetadata *block, FlacData * data) {
|
||||
}
|
||||
|
||||
if(!found || state == REPLAYGAIN_TRACK) {
|
||||
if(flacFindVorbisCommentFloat(block,"replaygain_track_gain",
|
||||
&gain))
|
||||
{
|
||||
found = flacFindVorbisCommentFloat(block,
|
||||
"replaygain_track_gain", &gain);
|
||||
if(found) {
|
||||
peak = 0.0;
|
||||
flacFindVorbisCommentFloat(block,
|
||||
"replaygain_track_peak",&peak);
|
||||
}
|
||||
}
|
||||
|
||||
data->replayGainScale = computeReplayGainScale(gain,peak);
|
||||
if(found) data->replayGainScale = computeReplayGainScale(gain,peak);
|
||||
}
|
||||
|
||||
void flacMetadata(const FLAC__SeekableStreamDecoder *dec,
|
||||
|
||||
Reference in New Issue
Block a user