mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
impl-link: reset state before starting allocation
Reset our state before checking the state of the ports or else we might still think a port has buffers while they are being allocated.
This commit is contained in:
parent
4be29c1124
commit
ebede91239
1 changed files with 3 additions and 0 deletions
|
|
@ -411,6 +411,9 @@ static int do_allocation(struct pw_impl_link *this)
|
|||
pw_log_debug(NAME" %p: out-node:%p in-node:%p: out-flags:%08x in-flags:%08x",
|
||||
this, output->node, input->node, out_flags, in_flags);
|
||||
|
||||
this->rt.in_mix.have_buffers = false;
|
||||
this->rt.out_mix.have_buffers = false;
|
||||
|
||||
if (out_flags & SPA_PORT_FLAG_LIVE) {
|
||||
pw_log_debug(NAME" %p: setting link as live", this);
|
||||
output->node->live = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue