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:
Wim Taymans 2023-10-16 18:23:49 +02:00
parent 19b02003b0
commit 67c32ec3c2

View file

@ -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++;