From aefe407d79a52d7648e0fcaebb93f1ac7835cc69 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 17 Apr 2024 11:18:15 +0200 Subject: [PATCH] impl-port: avoid doing work when the port is destroyed --- src/pipewire/impl-port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/impl-port.c b/src/pipewire/impl-port.c index a03897abc..25d3f3f09 100644 --- a/src/pipewire/impl-port.c +++ b/src/pipewire/impl-port.c @@ -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);