From 18f350cd043b412328a2ccc31d230493fcc67be6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 3 Dec 2017 10:47:56 +0100 Subject: [PATCH] player/Thread: initialize MusicChunk::bit_rate in SendSilence() This attribute is not particularly important, but it was uninitialized. --- src/player/Thread.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index c06bd419f..7d3d18694 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -558,6 +558,7 @@ Player::SendSilence() partial frames */ unsigned num_frames = sizeof(chunk->data) / frame_size; + chunk->bit_rate = 0; chunk->time = SignedSongTime::Negative(); /* undefined time stamp */ chunk->length = num_frames * frame_size; PcmSilence({chunk->data, chunk->length}, play_audio_format.format);