diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-02-24 10:17:42 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-02-24 10:20:33 +0100 |
commit | 8ecef35e80b2ec08b52bd68e2904a7e62b000bf5 (patch) | |
tree | 8909e178a6905f9c9f4c63b9a221c28a60398c3d /src/modules | |
parent | e205523f0a69261460c6450bc3ed5c80b936d1f1 (diff) |
client-node: update n_buffers after we can process them
Make sure we don't configure the buffers before we manage to
completely process them or else we are left with an invalid list
of buffers.
See #209
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/module-client-node/client-node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c index a2e1e6d3..9fb5d300 100644 --- a/src/modules/module-client-node/client-node.c +++ b/src/modules/module-client-node/client-node.c @@ -736,8 +736,6 @@ do_port_use_buffers(struct impl *impl, mb = NULL; } - mix->n_buffers = n_buffers; - if (this->resource == NULL) return n_buffers == 0 ? 0 : -EIO; @@ -823,6 +821,7 @@ do_port_use_buffers(struct impl *impl, } } } + mix->n_buffers = n_buffers; return pw_client_node_resource_port_use_buffers(this->resource, direction, port_id, mix_id, flags, |