summaryrefslogtreecommitdiff
path: root/src/player
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-03 11:15:11 +0100
committerMax Kellermann <max@musicpd.org>2017-12-03 11:39:12 +0100
commitde90d401d290f69fb19bd1f8124ce43fcb932dc0 (patch)
tree72407f99cd4528a79711678ea69c5a3ccc6c6384 /src/player
parent396defaea920e8493252d647cbf640682c4603ed (diff)
MusicChunk: add magic value IGNORE_REPLAY_GAIN
This fixes spurious replay gain logs when the player inserts silence chunks, because those silence chunks had no replay gain attached, resetting the ReplayGainFilter state, flipping it forth and back.
Diffstat (limited to 'src/player')
-rw-r--r--src/player/Thread.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx
index be34d8af9..913e541e1 100644
--- a/src/player/Thread.cxx
+++ b/src/player/Thread.cxx
@@ -561,7 +561,7 @@ Player::SendSilence()
chunk->bit_rate = 0;
chunk->time = SignedSongTime::Negative(); /* undefined time stamp */
chunk->length = num_frames * frame_size;
- chunk->replay_gain_serial = 0;
+ chunk->replay_gain_serial = MusicChunk::IGNORE_REPLAY_GAIN;
PcmSilence({chunk->data, chunk->length}, play_audio_format.format);
try {