audioconvert: improve renegotiation

When the follower updates EnumFormat, it probably wants to renegotiate
to a new format, so clear the current format so that we do that when
starting the next time.

EnumFormat should also not only return the current format in case we
are negotiated but it should return all possible formats.

See #2832
This commit is contained in:
Wim Taymans 2022-11-17 19:26:46 +01:00
parent 72912c9589
commit 90f5b4a4bf
2 changed files with 5 additions and 6 deletions

View file

@ -1096,6 +1096,10 @@ static void follower_port_info(void *data,
spa_log_debug(this->log, "latency: %d (%s)", res,
spa_strerror(res));
}
if (idx == IDX_EnumFormat) {
this->have_format = false;
spa_log_debug(this->log, "new formats");
}
this->info.change_mask |= SPA_NODE_CHANGE_MASK_PARAMS;
if (!this->add_listener) {