audioconvert: improve negotiation

Configure format and buffers when the ports are configured instead of
in the start command.
This commit is contained in:
Wim Taymans 2018-11-19 09:46:36 +01:00
parent 0343297257
commit f063cc9086
4 changed files with 74 additions and 12 deletions

View file

@ -207,6 +207,8 @@ static int impl_node_set_param(struct spa_node *node, uint32_t id, uint32_t flag
if (port->have_format && memcmp(&port->format, &info, sizeof(info)) == 0)
return 0;
spa_log_debug(this->log, NAME " %p: profile %d", this, info.info.raw.channels);
port->have_format = true;
port->format = info;