From af6638251dd4dd81b8fc213314ef0da556e9da88 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 17 Apr 2024 13:14:17 +0200 Subject: [PATCH] impl-port: set position io on the mixer nodes When adding the node, set the current node position IO. We don't need to set the IO_Buffers because we did that when we set the mixer on the port. --- src/pipewire/impl-port.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pipewire/impl-port.c b/src/pipewire/impl-port.c index 722f7b0ee..86812f7d5 100644 --- a/src/pipewire/impl-port.c +++ b/src/pipewire/impl-port.c @@ -1242,11 +1242,11 @@ int pw_impl_port_add(struct pw_impl_port *port, struct pw_impl_node *node) if (is_control) { pw_log_debug("%p: setting node control", port); } else { - pw_log_debug("%p: setting mixer io", port); - spa_node_port_set_io(port->mix, - pw_direction_reverse(port->direction), 0, - SPA_IO_Buffers, - &port->rt.io, sizeof(port->rt.io)); + pw_log_debug("%p: setting mixer position io", port); + spa_node_set_io(port->mix, + SPA_IO_Position, + node->rt.position, + sizeof(struct spa_io_position)); } pw_log_debug("%p: %d add to node %p", port, port_id, node);