MusicChunk: initialize replay_gain_serial on demand

This commit is contained in:
Max Kellermann
2017-12-03 11:39:07 +01:00
parent 18f350cd04
commit 396defaea9
2 changed files with 2 additions and 1 deletions

View File

@@ -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 {