mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
link: reset builder before getting current format
This commit is contained in:
parent
1f1dbe26e1
commit
0966e703fe
1 changed files with 2 additions and 0 deletions
|
|
@ -139,6 +139,8 @@ static int do_negotiate(struct pw_link *this, uint32_t in_state, uint32_t out_st
|
||||||
format = pw_spa_pod_copy(format);
|
format = pw_spa_pod_copy(format);
|
||||||
spa_pod_fixate(format);
|
spa_pod_fixate(format);
|
||||||
|
|
||||||
|
spa_pod_builder_init(&b, buffer, sizeof(buffer));
|
||||||
|
|
||||||
if (out_state > PW_PORT_STATE_CONFIGURE && output->node->info.state == PW_NODE_STATE_IDLE) {
|
if (out_state > PW_PORT_STATE_CONFIGURE && output->node->info.state == PW_NODE_STATE_IDLE) {
|
||||||
if ((res = spa_node_port_enum_params(output->node->node,
|
if ((res = spa_node_port_enum_params(output->node->node,
|
||||||
output->direction, output->port_id,
|
output->direction, output->port_id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue