aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/ogg_plugin.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-08-13 03:54:31 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-08-13 03:54:31 +0000
commit63efaae0eecc391b157fed544af1b72af50e5a63 (patch)
tree3894c90f7b8c14d54e99b97c7b4dcc5f3b74253b /src/inputPlugins/ogg_plugin.c
parentce2fe32c54573afc2a64af5b06d3f42ec08f16ce (diff)
downloadmpd-63efaae0eecc391b157fed544af1b72af50e5a63.tar.gz
mpd-63efaae0eecc391b157fed544af1b72af50e5a63.tar.xz
mpd-63efaae0eecc391b157fed544af1b72af50e5a63.zip
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
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/ogg_plugin.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/inputPlugins/ogg_plugin.c b/src/inputPlugins/ogg_plugin.c
index c65de71aa..5d461586e 100644
--- a/src/inputPlugins/ogg_plugin.c
+++ b/src/inputPlugins/ogg_plugin.c
@@ -157,12 +157,16 @@ float ogg_getReplayGainScale(char ** comments) {
if(albumGainFound) {
return computeReplayGainScale(albumGain,albumPeak);
}
- return computeReplayGainScale(trackGain,trackPeak);
+ else if(trackGainFound) {
+ return computeReplayGainScale(trackGain,trackPeak);
+ }
case REPLAYGAIN_TRACK:
if(trackGainFound) {
return computeReplayGainScale(trackGain,trackPeak);
}
- return computeReplayGainScale(albumGain,albumPeak);
+ else if(albumGainFound) {
+ return computeReplayGainScale(albumGain,albumPeak);
+ }
}
return 1.0;