slight fix to replay gain tags for oggs
git-svn-id: https://svn.musicpd.org/mpd/trunk@1661 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
2e4ad4df39
commit
77bd4ec428
@ -157,8 +157,12 @@ float ogg_getReplayGainScale(char ** comments) {
|
||||
if(albumGainFound) {
|
||||
return computeReplayGainScale(albumGain,albumPeak);
|
||||
}
|
||||
default:
|
||||
return computeReplayGainScale(trackGain,trackPeak);
|
||||
case REPLAYGAIN_TRACK:
|
||||
if(trackGainFound) {
|
||||
return computeReplayGainScale(trackGain,trackPeak);
|
||||
}
|
||||
return computeReplayGainScale(albumGain,albumPeak);
|
||||
}
|
||||
|
||||
return 1.0;
|
||||
|
Loading…
Reference in New Issue
Block a user