mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
link: fix negotiation
Fix renegotiation of idle but not yet suspended nodes.
This commit is contained in:
parent
3adbaacec2
commit
4808f8f10e
5 changed files with 50 additions and 23 deletions
|
|
@ -551,6 +551,11 @@ pinos_core_find_format (PinosCore *core,
|
|||
out_state = output->node->node->state;
|
||||
in_state = input->node->node->state;
|
||||
|
||||
if (out_state > SPA_NODE_STATE_CONFIGURE && output->node->state == PINOS_NODE_STATE_IDLE)
|
||||
out_state = SPA_NODE_STATE_CONFIGURE;
|
||||
if (in_state > SPA_NODE_STATE_CONFIGURE && input->node->state == PINOS_NODE_STATE_IDLE)
|
||||
in_state = SPA_NODE_STATE_CONFIGURE;
|
||||
|
||||
if (in_state == SPA_NODE_STATE_CONFIGURE && out_state > SPA_NODE_STATE_CONFIGURE) {
|
||||
/* only input needs format */
|
||||
if ((res = spa_node_port_get_format (output->node->node,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue