mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-29 06:46:38 -04:00
Merge branch 'master-0420' into 'master'
audioadapter: remap port id for port_reuse_buffer on target See merge request pipewire/pipewire!2799
This commit is contained in:
commit
09c02172f1
2 changed files with 6 additions and 0 deletions
|
|
@ -1812,6 +1812,9 @@ impl_node_port_reuse_buffer(void *object, uint32_t port_id, uint32_t buffer_id)
|
||||||
|
|
||||||
spa_return_val_if_fail(this != NULL, -EINVAL);
|
spa_return_val_if_fail(this != NULL, -EINVAL);
|
||||||
|
|
||||||
|
if (SPA_DIRECTION_OUTPUT != this->direction)
|
||||||
|
port_id++;
|
||||||
|
|
||||||
return spa_node_port_reuse_buffer(this->target, port_id, buffer_id);
|
return spa_node_port_reuse_buffer(this->target, port_id, buffer_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1779,6 +1779,9 @@ impl_node_port_reuse_buffer(void *object, uint32_t port_id, uint32_t buffer_id)
|
||||||
|
|
||||||
spa_return_val_if_fail(this != NULL, -EINVAL);
|
spa_return_val_if_fail(this != NULL, -EINVAL);
|
||||||
|
|
||||||
|
if (SPA_DIRECTION_OUTPUT != this->direction)
|
||||||
|
port_id++;
|
||||||
|
|
||||||
return spa_node_port_reuse_buffer(this->target, port_id, buffer_id);
|
return spa_node_port_reuse_buffer(this->target, port_id, buffer_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue