mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
impl-port: avoid doing work when the port is destroyed
This commit is contained in:
parent
f8831f84d5
commit
ec13e9148b
1 changed files with 1 additions and 1 deletions
|
|
@ -735,7 +735,7 @@ int pw_impl_port_set_mix(struct pw_impl_port *port, struct spa_node *node, uint3
|
||||||
port->mix_flags = flags;
|
port->mix_flags = flags;
|
||||||
port->mix = node;
|
port->mix = node;
|
||||||
|
|
||||||
if (port->mix) {
|
if (port->mix && !port->destroying) {
|
||||||
spa_list_for_each(mix, &port->mix_list, link)
|
spa_list_for_each(mix, &port->mix_list, link)
|
||||||
spa_node_add_port(port->mix, mix->port.direction, mix->port.port_id, NULL);
|
spa_node_add_port(port->mix, mix->port.direction, mix->port.port_id, NULL);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue