Commit 396defae authored by Max Kellermann's avatar Max Kellermann

MusicChunk: initialize replay_gain_serial on demand

parent 18f350cd
......@@ -84,7 +84,7 @@ struct MusicChunk {
* changed since the last chunk. The magic value 0 indicates
* that there is no replay gain info available.
*/
unsigned replay_gain_serial = 0;
unsigned replay_gain_serial;
/** the data (probably PCM) */
uint8_t data[CHUNK_SIZE];
......
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment