mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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
This commit is contained in:
parent
e205523f0a
commit
8ecef35e80
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue