mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
impl-port: only use DYNAMIC_DATA when allowed
Allocate buffers with the DYNAMIC_DATA flag set only when the port actually allows it. See #4918
This commit is contained in:
parent
0915ed8be0
commit
91ae1c13b7
1 changed files with 3 additions and 2 deletions
|
|
@ -1955,8 +1955,9 @@ static int negotiate_mixer_buffers(struct pw_impl_port *port, uint32_t flags,
|
|||
if (SPA_FLAG_IS_SET(port->mix_flags, PW_IMPL_PORT_MIX_FLAG_NEGOTIATE)) {
|
||||
int alloc_flags;
|
||||
|
||||
/* try dynamic data */
|
||||
alloc_flags = PW_BUFFERS_FLAG_DYNAMIC;
|
||||
alloc_flags = 0;
|
||||
if (SPA_FLAG_IS_SET(port->spa_flags, SPA_PORT_FLAG_DYNAMIC_DATA))
|
||||
alloc_flags |= PW_BUFFERS_FLAG_DYNAMIC;
|
||||
if (SPA_FLAG_IS_SET(node->spa_flags, SPA_NODE_FLAG_ASYNC))
|
||||
alloc_flags |= PW_BUFFERS_FLAG_ASYNC;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue