mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioadapter: don't clear format when EnumFormat changes
Don't blindly clear the format when EnumFormat changes. This will just stop the node without renegotiating. We should probably find a new best format, check if it changed and then Stop/configure/Resume the follower with the new format. This fixes a stall when a node is running and you change the allowed codecs.
This commit is contained in:
parent
19b02003b0
commit
67c32ec3c2
1 changed files with 1 additions and 1 deletions
|
|
@ -1277,7 +1277,7 @@ static void follower_port_info(void *data,
|
|||
}
|
||||
if (idx == IDX_EnumFormat) {
|
||||
spa_log_debug(this->log, "new formats");
|
||||
configure_format(this, 0, NULL);
|
||||
/* we will renegotiate when restarting */
|
||||
}
|
||||
|
||||
this->params[idx].user++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue