mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
link: reset port state on deactivate
Make sure we renegotiate the mix ports when we deactivate the link.
This commit is contained in:
parent
f7c84b733b
commit
8f8ed7270a
1 changed files with 2 additions and 0 deletions
|
|
@ -1083,6 +1083,7 @@ int pw_link_deactivate(struct pw_link *this)
|
||||||
pw_log_debug("port %p: state %d -> %d", this->input,
|
pw_log_debug("port %p: state %d -> %d", this->input,
|
||||||
this->input->state, PW_PORT_STATE_PAUSED);
|
this->input->state, PW_PORT_STATE_PAUSED);
|
||||||
}
|
}
|
||||||
|
this->rt.in_mix.state = PW_PORT_STATE_CONFIGURE;
|
||||||
|
|
||||||
if (output_node->n_used_input_links <= output_node->idle_used_input_links &&
|
if (output_node->n_used_input_links <= output_node->idle_used_input_links &&
|
||||||
output_node->n_used_output_links <= output_node->idle_used_output_links &&
|
output_node->n_used_output_links <= output_node->idle_used_output_links &&
|
||||||
|
|
@ -1091,6 +1092,7 @@ int pw_link_deactivate(struct pw_link *this)
|
||||||
pw_log_debug("port %p: state %d -> %d", this->output,
|
pw_log_debug("port %p: state %d -> %d", this->output,
|
||||||
this->output->state, PW_PORT_STATE_PAUSED);
|
this->output->state, PW_PORT_STATE_PAUSED);
|
||||||
}
|
}
|
||||||
|
this->rt.out_mix.state = PW_PORT_STATE_CONFIGURE;
|
||||||
|
|
||||||
pw_link_update_state(this, PW_LINK_STATE_INIT, NULL);
|
pw_link_update_state(this, PW_LINK_STATE_INIT, NULL);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue