From 23ecff10112ffd8cace0a0f41f4abd45222af2d8 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 21 Jun 2023 13:37:50 +1000 Subject: Fix spurious stream starts --- src/audio/audio_decoder.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/audio/audio_decoder.cpp') diff --git a/src/audio/audio_decoder.cpp b/src/audio/audio_decoder.cpp index 583f4b22..966a8c37 100644 --- a/src/audio/audio_decoder.cpp +++ b/src/audio/audio_decoder.cpp @@ -142,7 +142,6 @@ auto AudioDecoder::Process(const std::vector& inputs, // before starting to process data. // TODO(jacqueline): Pass through seek info here? if (!has_prepared_output_ && !output->prepare(*current_output_format_)) { - ESP_LOGI(kTag, "waiting for buffer to become free"); return; } has_prepared_output_ = true; @@ -156,12 +155,9 @@ auto AudioDecoder::Process(const std::vector& inputs, // The codec ran out of input during processing. This is expected to // happen throughout the stream. if (res.second.error() == codecs::ICodec::Error::kOutOfInput) { - ESP_LOGI(kTag, "codec needs more data"); has_input_remaining_ = false; has_samples_to_send_ = false; if (input->is_producer_finished()) { - ESP_LOGI(kTag, "codec is all done."); - // We're out of data, and so is the producer. Nothing left to be done // with the input stream. input->mark_consumer_finished(); -- cgit v1.2.3