client-node: clear array fields

This commit is contained in:
Wim Taymans 2020-06-16 21:22:06 +02:00
parent 660d77cff0
commit 2a11e66417

View file

@ -527,6 +527,7 @@ clear_port(struct node *this, struct port *port)
pw_array_for_each(mix, &port->mix) pw_array_for_each(mix, &port->mix)
mix_clear(this, mix); mix_clear(this, mix);
pw_array_clear(&port->mix); pw_array_clear(&port->mix);
pw_array_init(&port->mix, sizeof(struct mix) * 2);
if (port->direction == SPA_DIRECTION_INPUT) { if (port->direction == SPA_DIRECTION_INPUT) {
if (this->in_ports[port->id] == port) { if (this->in_ports[port->id] == port) {