audioadapter: init the builder for each param

Or else we keep on adding items until we overflow.
This commit is contained in:
Wim Taymans 2025-04-01 16:23:34 +02:00
parent 98e7ae39c6
commit ce6d2fce9a

View file

@ -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,