From ce6d2fce9ab1a39640647bf8c5f64bb6a373730e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 1 Apr 2025 16:23:34 +0200 Subject: [PATCH] audioadapter: init the builder for each param Or else we keep on adding items until we overflow. --- spa/plugins/audioconvert/audioadapter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index 6e393bd0d..85e3fb8da 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -1612,13 +1612,13 @@ port_enum_formats_for_convert(struct impl *this, int seq, enum spa_direction dir uint32_t count = 0; struct spa_result_node_params result; - spa_pod_builder_init(&b, buffer, sizeof(buffer)); - result.id = id; result.next = start; next: result.index = result.next; + spa_pod_builder_init(&b, buffer, sizeof(buffer)); + if (result.next < 0x100000) { /* Enumerate follower formats first, until we have enough or we run out */ if ((res = node_port_enum_params_sync(this, this->follower, direction, port_id, id,