audioconvert: clear negotiated rate

When we clear the format on the non-dsp port, set the rate back to
0 so that we can negotiate a new rate if needed.
This commit is contained in:
Wim Taymans 2021-07-29 13:35:41 +02:00
parent 4496aed5a6
commit 2dabd337dc
2 changed files with 2 additions and 0 deletions

View file

@ -973,6 +973,7 @@ static int port_set_format(void *object,
port->have_format = false; port->have_format = false;
else else
port->have_format = this->have_profile; port->have_format = this->have_profile;
port->format.info.raw.rate = 0;
clear_buffers(this, port); clear_buffers(this, port);
} }
} else { } else {

View file

@ -732,6 +732,7 @@ static int port_set_format(void *object,
port->have_format = this->have_profile; port->have_format = this->have_profile;
else else
port->have_format = false; port->have_format = false;
port->format.info.raw.rate = 0;
clear_buffers(this, port); clear_buffers(this, port);
} }
} else { } else {