summaryrefslogtreecommitdiff
path: root/src/player
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-03 11:39:07 +0100
committerMax Kellermann <max@musicpd.org>2017-12-03 11:39:07 +0100
commit396defaea920e8493252d647cbf640682c4603ed (patch)
tree879e06fffaf7aae5a6f86a94dd2f6d09f7284950 /src/player
parent18f350cd043b412328a2ccc31d230493fcc67be6 (diff)
MusicChunk: initialize replay_gain_serial on demand
Diffstat (limited to 'src/player')
-rw-r--r--src/player/Thread.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx
index 7d3d18694..be34d8af9 100644
--- a/src/player/Thread.cxx
+++ b/src/player/Thread.cxx
@@ -561,6 +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;
PcmSilence({chunk->data, chunk->length}, play_audio_format.format);
try {