impl-port: avoid doing work when the port is destroyed

This commit is contained in:
Wim Taymans 2024-04-17 11:18:15 +02:00
parent f65dd4e515
commit aefe407d79

View file

@ -690,7 +690,7 @@ int pw_impl_port_set_mix(struct pw_impl_port *port, struct spa_node *node, uint3
port->mix_flags = flags;
port->mix = node;
if (port->mix) {
if (port->mix && !port->destroying) {
spa_list_for_each(mix, &port->mix_list, link)
spa_node_add_port(port->mix, mix->port.direction, mix->port.port_id, NULL);