diff options
Diffstat (limited to 'src/inputPlugins')
-rw-r--r-- | src/inputPlugins/ogg_plugin.c | 6 |
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; |