From 1c7fa34f577e0ebfd97cfbd68abcbff05d37c119 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 29 Jan 2019 09:50:50 +0100 Subject: [PATCH] port: make it possible to clear the mix node again --- src/pipewire/port.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pipewire/port.c b/src/pipewire/port.c index 590a2effa..e45f19316 100644 --- a/src/pipewire/port.c +++ b/src/pipewire/port.c @@ -292,6 +292,12 @@ struct pw_port *pw_port_new(enum pw_direction direction, int pw_port_set_mix(struct pw_port *port, struct spa_node *node, uint32_t flags) { + struct impl *impl = SPA_CONTAINER_OF(port, struct impl, this); + + if (node == NULL) { + node = &impl->mix_node; + flags = 0; + } pw_log_debug("port %p: mix node %p->%p", port, port->mix, node); port->mix = node; port->mix_flags = flags;