summaryrefslogtreecommitdiff
path: root/src/audio/audio_decoder.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-06-21 13:37:50 +1000
committerjacqueline <me@jacqueline.id.au>2023-06-21 13:37:50 +1000
commit23ecff10112ffd8cace0a0f41f4abd45222af2d8 (patch)
tree193d53cbc8aae4c7bc33746807fddb1e30d6f2ba /src/audio/audio_decoder.cpp
parent8fed966c96be9d18fe7be758ee6a49a62ebab125 (diff)
downloadtangara-fw-23ecff10112ffd8cace0a0f41f4abd45222af2d8.tar.gz
Fix spurious stream starts
Diffstat (limited to 'src/audio/audio_decoder.cpp')
-rw-r--r--src/audio/audio_decoder.cpp4
1 files changed, 0 insertions, 4 deletions
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<InputStream>& 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<InputStream>& 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();