aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/outputBuffer.c')
-rw-r--r--src/outputBuffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index 463eeef79..e52c6e1a4 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -92,7 +92,9 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream,
&(cb->audioFormat),data);
}
- doReplayGain(replayGainInfo, data, datalen, &cb->audioFormat);
+ if(replayGainInfo) {
+ doReplayGain(replayGainInfo, data, datalen, &cb->audioFormat);
+ }
while(datalen) {
if(currentChunk != cb->end) {