diff options
author | Wim Taymans <wtaymans@redhat.com> | 2017-11-13 12:30:48 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2017-11-13 12:30:48 +0100 |
commit | cd5e697e9f68d0756a4db6790a3ba781d340e246 (patch) | |
tree | e5c62d88a48062576e6f6d9cd9f38f9738cb7600 /spa/plugins/ffmpeg/ffmpeg-dec.c | |
parent | 737b4280772a00d532f27d03cf369b70c53365a1 (diff) |
builder: make methods to save and restore state
Diffstat (limited to 'spa/plugins/ffmpeg/ffmpeg-dec.c')
-rw-r--r-- | spa/plugins/ffmpeg/ffmpeg-dec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spa/plugins/ffmpeg/ffmpeg-dec.c b/spa/plugins/ffmpeg/ffmpeg-dec.c index d4687d15..76942422 100644 --- a/spa/plugins/ffmpeg/ffmpeg-dec.c +++ b/spa/plugins/ffmpeg/ffmpeg-dec.c @@ -275,11 +275,11 @@ spa_ffmpeg_dec_node_port_enum_params(struct spa_node *node, { struct impl *this = SPA_CONTAINER_OF(node, struct impl, node); struct type *t = &this->type; - uint32_t offset; + struct spa_pod_builder_state state; struct spa_pod *param; int res; - offset = builder->offset; + spa_pod_builder_get_state(builder, &state); next: if (id == t->param.idList) { @@ -305,7 +305,7 @@ spa_ffmpeg_dec_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; |