From 86a52ea7b5b68db5bb83fa92f88c56599bce3d9a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 20 Jul 2023 13:22:45 +0200 Subject: [PATCH] client-node: don't set io on our internal mix We use the -1 mixer to keep track of the buffers and format after the port mixer so we don't want to clear the io when we remove it. --- src/modules/module-client-node/remote-node.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/module-client-node/remote-node.c b/src/modules/module-client-node/remote-node.c index f5d116f59..17c1c5780 100644 --- a/src/modules/module-client-node/remote-node.c +++ b/src/modules/module-client-node/remote-node.c @@ -889,8 +889,9 @@ static void clear_mix(struct node_data *data, struct mix *mix) { pw_log_debug("port %p: mix clear %d.%d", mix->port, mix->port->port_id, mix->mix.id); - spa_node_port_set_io(mix->port->mix, mix->mix.port.direction, - mix->mix.port.port_id, SPA_IO_Buffers, NULL, 0); + if (mix->mix.id != SPA_ID_INVALID) + spa_node_port_set_io(mix->port->mix, mix->mix.port.direction, + mix->mix.port.port_id, SPA_IO_Buffers, NULL, 0); spa_list_remove(&mix->link);