mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
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.
This commit is contained in:
parent
77ed5ccb31
commit
af6638251d
1 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue