mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
client-stream: prefer client buffer params
This commit is contained in:
parent
a13b5cfdc3
commit
b46a0bc047
1 changed files with 12 additions and 13 deletions
|
|
@ -454,19 +454,6 @@ static int negotiate_buffers(struct impl *impl)
|
|||
if (impl->n_buffers > 0)
|
||||
return 0;
|
||||
|
||||
state = 0;
|
||||
if ((res = spa_node_port_enum_params(impl->cnode,
|
||||
impl->direction, 0,
|
||||
t->param.idBuffers, &state,
|
||||
param, ¶m, &b)) < 0) {
|
||||
debug_params(impl, impl->cnode, impl->direction, 0,
|
||||
t->param.idBuffers, param);
|
||||
return res;
|
||||
}
|
||||
|
||||
if (res == 0)
|
||||
param = NULL;
|
||||
|
||||
state = 0;
|
||||
if ((res = spa_node_port_enum_params(impl->adapter,
|
||||
SPA_DIRECTION_REVERSE(impl->direction), 0,
|
||||
|
|
@ -476,6 +463,18 @@ static int negotiate_buffers(struct impl *impl)
|
|||
t->param.idBuffers, param);
|
||||
return -ENOTSUP;
|
||||
}
|
||||
if (res == 0)
|
||||
param = NULL;
|
||||
|
||||
state = 0;
|
||||
if ((res = spa_node_port_enum_params(impl->cnode,
|
||||
impl->direction, 0,
|
||||
t->param.idBuffers, &state,
|
||||
param, ¶m, &b)) < 0) {
|
||||
debug_params(impl, impl->cnode, impl->direction, 0,
|
||||
t->param.idBuffers, param);
|
||||
return res;
|
||||
}
|
||||
|
||||
spa_pod_fixate(param);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue