diff options
Diffstat (limited to 'spa/plugins/audiotestsrc/audiotestsrc.c')
-rw-r--r-- | spa/plugins/audiotestsrc/audiotestsrc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spa/plugins/audiotestsrc/audiotestsrc.c b/spa/plugins/audiotestsrc/audiotestsrc.c index 9eb11ef4..ff3eaee1 100644 --- a/spa/plugins/audiotestsrc/audiotestsrc.c +++ b/spa/plugins/audiotestsrc/audiotestsrc.c @@ -174,7 +174,7 @@ static int impl_node_enum_params(struct spa_node *node, { struct impl *this; struct type *t; - uint32_t offset; + struct spa_pod_builder_state state; struct spa_pod *param; spa_return_val_if_fail(node != NULL, -EINVAL); @@ -184,7 +184,7 @@ static int impl_node_enum_params(struct spa_node *node, this = SPA_CONTAINER_OF(node, struct impl, node); t = &this->type; - offset = builder->offset; + spa_pod_builder_get_state(builder, &state); next: if (id == t->param.idList) { @@ -217,7 +217,7 @@ static int impl_node_enum_params(struct spa_node *node, (*index)++; - spa_pod_builder_reset(builder, offset); + spa_pod_builder_reset(builder, &state); if (spa_pod_filter(builder, param, (struct spa_pod*)filter) < 0) goto next; @@ -577,7 +577,7 @@ impl_node_port_enum_params(struct spa_node *node, { struct impl *this; struct type *t; - uint32_t offset; + struct spa_pod_builder_state state; struct spa_pod *param; int res; @@ -590,7 +590,7 @@ impl_node_port_enum_params(struct spa_node *node, spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL); - offset = builder->offset; + spa_pod_builder_get_state(builder, &state); next: if (id == t->param.idList) { @@ -660,7 +660,7 @@ impl_node_port_enum_params(struct spa_node *node, (*index)++; - spa_pod_builder_reset(builder, offset); + spa_pod_builder_reset(builder, &state); if (spa_pod_filter(builder, param, (struct spa_pod*)filter) < 0) goto next; |