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.
This commit is contained in:
Wim Taymans 2026-03-11 18:16:53 +01:00
parent 2f65cf7124
commit 9c7aa4d423

View file

@ -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];