audioconvert: fix param counter

This commit is contained in:
Wim Taymans 2022-05-03 10:41:02 +02:00
parent 7b9321dea9
commit ad130d0cd6

View file

@ -1015,7 +1015,7 @@ impl_node_port_enum_params(void *object, int seq,
result.id = id; result.id = id;
result.next = start; result.next = start;
next: next:
result.index = result.next++; result.index = result.next;
spa_pod_builder_init(&b, buffer, sizeof(buffer)); spa_pod_builder_init(&b, buffer, sizeof(buffer));
@ -1037,6 +1037,7 @@ impl_node_port_enum_params(void *object, int seq,
default: default:
return 0; return 0;
} }
result.next++;
break; break;
default: default:
{ {
@ -1049,7 +1050,7 @@ impl_node_port_enum_params(void *object, int seq,
res = spa_node_port_enum_params_sync(target, res = spa_node_port_enum_params_sync(target,
direction, port_id, direction, port_id,
id, &result.index, id, &result.next,
NULL, &param, &b); NULL, &param, &b);
if (res != 1) if (res != 1)
return res; return res;