aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-25 18:11:31 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-25 18:11:31 +0000
commit77bd4ec428111bbc9ed146401bc6648052bc2f18 (patch)
tree3a1b383161e359a67575f5d0f2e166ad3f36510a
parent2e4ad4df399df3d285519c6765d5e2c9ebfbf1a4 (diff)
downloadmpd-77bd4ec428111bbc9ed146401bc6648052bc2f18.tar.gz
mpd-77bd4ec428111bbc9ed146401bc6648052bc2f18.tar.xz
mpd-77bd4ec428111bbc9ed146401bc6648052bc2f18.zip
slight fix to replay gain tags for oggs
git-svn-id: https://svn.musicpd.org/mpd/trunk@1661 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--src/inputPlugins/ogg_plugin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/inputPlugins/ogg_plugin.c b/src/inputPlugins/ogg_plugin.c
index adf11cf69..a85658c9a 100644
--- a/src/inputPlugins/ogg_plugin.c
+++ b/src/inputPlugins/ogg_plugin.c
@@ -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;