mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
port: make it possible to clear the mix node again
This commit is contained in:
parent
efc571972d
commit
1c7fa34f57
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
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);
|
pw_log_debug("port %p: mix node %p->%p", port, port->mix, node);
|
||||||
port->mix = node;
|
port->mix = node;
|
||||||
port->mix_flags = flags;
|
port->mix_flags = flags;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue