diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-08-13 03:54:31 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-08-13 03:54:31 +0000 |
commit | 63efaae0eecc391b157fed544af1b72af50e5a63 (patch) | |
tree | 3894c90f7b8c14d54e99b97c7b4dcc5f3b74253b /src/inputPlugins/ogg_plugin.c | |
parent | ce2fe32c54573afc2a64af5b06d3f42ec08f16ce (diff) | |
download | mpd-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 'src/inputPlugins/ogg_plugin.c')
-rw-r--r-- | src/inputPlugins/ogg_plugin.c | 8 |
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; |