Skip to content

Commit

Permalink
audio_pipeline : Fixed a bug that caused an element to be linked to a…
Browse files Browse the repository at this point in the history
…n uninitialized ring buffer when there was only a single element in the pipeline.

Closes #1386
Closes #1341
  • Loading branch information
huisemaoy authored and jason-mao committed Feb 27, 2025
1 parent a2ab6ce commit 6c28242
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/audio_pipeline/audio_pipeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,9 @@ static esp_err_t _pipeline_rb_linked(audio_pipeline_handle_t pipeline, audio_ele
{
static ringbuf_handle_t rb;
ringbuf_item_t *rb_item;
if (first) {
rb = NULL;
}
if (last) {
audio_element_set_input_ringbuf(el, rb);
} else {
Expand Down

0 comments on commit 6c28242

Please sign in to comment.