From ad130d0cd60141280d7d67003b1986e5c8a75aca Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 3 May 2022 10:41:02 +0200 Subject: [PATCH] audioconvert: fix param counter --- spa/plugins/audioconvert/audioconvert.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index e9fe31452..02c7bc1a9 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -1015,7 +1015,7 @@ impl_node_port_enum_params(void *object, int seq, result.id = id; result.next = start; next: - result.index = result.next++; + result.index = result.next; spa_pod_builder_init(&b, buffer, sizeof(buffer)); @@ -1037,6 +1037,7 @@ impl_node_port_enum_params(void *object, int seq, default: return 0; } + result.next++; break; default: { @@ -1049,7 +1050,7 @@ impl_node_port_enum_params(void *object, int seq, res = spa_node_port_enum_params_sync(target, direction, port_id, - id, &result.index, + id, &result.next, NULL, ¶m, &b); if (res != 1) return res;