From 9c7aa4d4233f3af9f23120b1d178072aafbbfe43 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 11 Mar 2026 18:16:53 +0100 Subject: [PATCH] impl-port: don't send NULL tag to clear NULL tags are never handled and so tags just keeps configured on the ports. It's also hard to know the direction from the NULL data. Instead, send an empty Tag with the direction to clear everything. --- 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 7731264db..c0de46e92 100644 --- a/src/pipewire/impl-port.c +++ b/src/pipewire/impl-port.c @@ -1954,7 +1954,7 @@ int pw_impl_port_recalc_tag(struct pw_impl_port *port) count++; } } - param = count == 0 ? NULL : spa_tag_build_end(&b.b, &f); + param = spa_tag_build_end(&b.b, &f); old = port->tag[direction];