From 67e77d13f60010937e5437b1d318596f072d3ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Mon, 21 Nov 2022 20:15:39 +0100 Subject: [PATCH] client-node: set port data before calling _set_mix() First set some of the port flags and data, especially the owner_data before calling pw_impl_port_set_mix(), which will use the owner_data to send the mix_info. See #2847 --- src/modules/module-client-node/client-node.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c index b3162e730..a33423b70 100644 --- a/src/modules/module-client-node/client-node.c +++ b/src/modules/module-client-node/client-node.c @@ -1558,14 +1558,14 @@ static void node_port_added(void *data, struct pw_impl_port *port) struct impl *impl = data; struct port *p = pw_impl_port_get_user_data(port); - pw_impl_port_set_mix(port, &p->mix_node, - PW_IMPL_PORT_MIX_FLAG_MULTI | - PW_IMPL_PORT_MIX_FLAG_MIX_ONLY); - port->flags |= PW_IMPL_PORT_FLAG_NO_MIXER; port->impl = SPA_CALLBACKS_INIT(&port_impl, p); port->owner_data = impl; + + pw_impl_port_set_mix(port, &p->mix_node, + PW_IMPL_PORT_MIX_FLAG_MULTI | + PW_IMPL_PORT_MIX_FLAG_MIX_ONLY); } static void node_port_removed(void *data, struct pw_impl_port *port)