audioadapter: renegotiate when driver changes

The renegotiated format can depend on the clock rate of the new
driver.

See #4933
This commit is contained in:
Wim Taymans 2025-10-28 08:19:17 +01:00
parent 752de866ae
commit a837dcd40b
2 changed files with 2 additions and 0 deletions

View file

@ -931,6 +931,7 @@ static int impl_node_set_io(void *object, uint32_t id, void *data, size_t size)
switch (id) { switch (id) {
case SPA_IO_Position: case SPA_IO_Position:
this->io_position = data; this->io_position = data;
this->recheck_format = true;
break; break;
default: default:
break; break;

View file

@ -900,6 +900,7 @@ static int impl_node_set_io(void *object, uint32_t id, void *data, size_t size)
switch (id) { switch (id) {
case SPA_IO_Position: case SPA_IO_Position:
this->io_position = data; this->io_position = data;
this->recheck_format = true;
break; break;
default: default:
break; break;