impl-port: clear have_buffers when setting 0 buffers

This commit is contained in:
Wim Taymans 2023-01-02 16:03:36 +01:00
parent ed46324872
commit 6b228944f7

View file

@ -1567,6 +1567,7 @@ int pw_impl_port_use_buffers(struct pw_impl_port *port, struct pw_impl_port_mix
return -EIO;
if (n_buffers == 0) {
mix->have_buffers = false;
if (port->n_mix == 1)
pw_impl_port_update_state(port, PW_IMPL_PORT_STATE_READY, 0, NULL);
}