mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-12 05:34:05 -04:00
audiomixer: only add the input port to mix_list
Adding the output port is not a problem because there is never a buffer to consume and mix but it wastes cycles.
This commit is contained in:
parent
5f4b422ab1
commit
5cc63c1b34
2 changed files with 2 additions and 2 deletions
|
|
@ -725,7 +725,7 @@ static int do_port_set_io(struct spa_loop *loop, bool async, uint32_t seq,
|
|||
port->io[0] = info->data;
|
||||
port->io[1] = info->data;
|
||||
}
|
||||
if (!port->active) {
|
||||
if (port->direction == SPA_DIRECTION_INPUT && !port->active) {
|
||||
spa_list_append(&info->impl->mix_list, &port->mix_link);
|
||||
port->active = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -718,7 +718,7 @@ static int do_port_set_io(struct spa_loop *loop, bool async, uint32_t seq,
|
|||
port->io[0] = info->data;
|
||||
port->io[1] = info->data;
|
||||
}
|
||||
if (!port->active) {
|
||||
if (port->direction == SPA_DIRECTION_INPUT && !port->active) {
|
||||
spa_list_append(&info->impl->mix_list, &port->mix_link);
|
||||
port->active = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue