diff options
Diffstat (limited to 'spa/plugins/test/fakesrc.c')
-rw-r--r-- | spa/plugins/test/fakesrc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spa/plugins/test/fakesrc.c b/spa/plugins/test/fakesrc.c index 0c4d8721..d32a5fce 100644 --- a/spa/plugins/test/fakesrc.c +++ b/spa/plugins/test/fakesrc.c @@ -141,7 +141,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); @@ -151,7 +151,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) { @@ -179,7 +179,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; @@ -483,7 +483,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; @@ -496,7 +496,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) { @@ -548,7 +548,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; |