aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-07-24 16:32:50 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-07-24 16:32:50 +0000
commit48240740e7aaaa58df65d570afa6ccbac8d590b2 (patch)
tree9079a4ca6dbc9d90267edf1de041bf6490f1e926 /src/outputBuffer.c
parent24c1f46353213e3392b542a6c3655bcd215e7c63 (diff)
downloadmpd-48240740e7aaaa58df65d570afa6ccbac8d590b2.tar.gz
mpd-48240740e7aaaa58df65d570afa6ccbac8d590b2.tar.xz
mpd-48240740e7aaaa58df65d570afa6ccbac8d590b2.zip
Do normalization if there's replaygain data but replaygain is off
git-svn-id: https://svn.musicpd.org/mpd/trunk@4445 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/outputBuffer.c')
-rw-r--r--src/outputBuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index 02d9234fd..90f2ef2db 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -115,7 +115,7 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream,
&(cb->audioFormat), data);
}
- if (replayGainInfo) {
+ if (replayGainInfo && (replayGainState != REPLAYGAIN_OFF)) {
doReplayGain(replayGainInfo, data, datalen, &cb->audioFormat);
} else if (normalEnable) {
normalizeData(data, datalen, &cb->audioFormat);