From 3696512b387ceefd25c00830fb24ddd073c06e2c Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 26 Jan 2023 15:09:59 +1100 Subject: Fix memory leak, re-enable play command (it doesnt work lol) --- src/audio/audio_decoder.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/audio/audio_decoder.cpp') diff --git a/src/audio/audio_decoder.cpp b/src/audio/audio_decoder.cpp index 8ef90905..87959cd4 100644 --- a/src/audio/audio_decoder.cpp +++ b/src/audio/audio_decoder.cpp @@ -21,7 +21,11 @@ namespace audio { static const std::size_t kSamplesPerChunk = 256; -AudioDecoder::AudioDecoder() : IAudioElement(), stream_info_({}) {} +AudioDecoder::AudioDecoder() + : IAudioElement(), + stream_info_({}), + has_samples_to_send_(false), + needs_more_input_(true) {} AudioDecoder::~AudioDecoder() {} -- cgit v1.2.3