From 04d7b7e09d7ae6db878a4f9d768de82d2b906efa Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 25 Feb 2019 09:40:34 -0500 Subject: audio_core/cubeb_sink: Initialize CubebSinkStream's last_frame data member Ensures that all member variables are initialized in a deterministic manner across the board. --- src/audio_core/cubeb_sink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/audio_core') diff --git a/src/audio_core/cubeb_sink.cpp b/src/audio_core/cubeb_sink.cpp index 404714b58..dc45dedd3 100644 --- a/src/audio_core/cubeb_sink.cpp +++ b/src/audio_core/cubeb_sink.cpp @@ -98,7 +98,7 @@ private: u32 num_channels{}; Common::RingBuffer queue; - std::array last_frame; + std::array last_frame{}; std::atomic should_flush{}; TimeStretcher time_stretch; -- cgit v1.2.3