mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -05:00
port: don't try to negotiate 0 buffers
Don't try to negotiate buffers when we are clearing the buffers.
This commit is contained in:
parent
d39dbceb2a
commit
09186844c4
1 changed files with 12 additions and 10 deletions
|
|
@ -1208,6 +1208,7 @@ static int negotiate_mixer_buffers(struct pw_impl_port *port, uint32_t flags,
|
|||
|
||||
pw_buffers_clear(&port->mix_buffers);
|
||||
|
||||
if (n_buffers > 0) {
|
||||
if ((res = pw_buffers_negotiate(node->context, alloc_flags,
|
||||
port->mix, 0,
|
||||
node->node, port->port_id,
|
||||
|
|
@ -1220,6 +1221,7 @@ static int negotiate_mixer_buffers(struct pw_impl_port *port, uint32_t flags,
|
|||
n_buffers = port->mix_buffers.n_buffers;
|
||||
flags = 0;
|
||||
}
|
||||
}
|
||||
|
||||
pw_log_debug(NAME" %p: %d.%d use buffers on node: %p",
|
||||
port, port->direction, port->port_id, node->node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue