summaryrefslogtreecommitdiff
path: root/src/audio/audio_decoder.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-01-26 15:09:59 +1100
committerjacqueline <me@jacqueline.id.au>2023-01-26 15:09:59 +1100
commit3696512b387ceefd25c00830fb24ddd073c06e2c (patch)
tree796de7fe246050ec874987dd4fa49932d4c6c986 /src/audio/audio_decoder.cpp
parentf6dcd845fc80da4e3043146e4362258dd8e0c0a1 (diff)
downloadtangara-fw-3696512b387ceefd25c00830fb24ddd073c06e2c.tar.gz
Fix memory leak, re-enable play command (it doesnt work lol)
Diffstat (limited to 'src/audio/audio_decoder.cpp')
-rw-r--r--src/audio/audio_decoder.cpp6
1 files changed, 5 insertions, 1 deletions
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() {}