mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
port: optimize tee reuse_buffer a bit
This commit is contained in:
parent
ed9851ab0f
commit
caca6dffd0
1 changed files with 3 additions and 5 deletions
|
|
@ -85,10 +85,8 @@ static int schedule_tee_reuse_buffer(struct spa_node *data, uint32_t port_id, ui
|
||||||
{
|
{
|
||||||
struct impl *impl = SPA_CONTAINER_OF(data, struct impl, mix_node);
|
struct impl *impl = SPA_CONTAINER_OF(data, struct impl, mix_node);
|
||||||
struct pw_port *this = &impl->this;
|
struct pw_port *this = &impl->this;
|
||||||
struct spa_graph_node *node = &this->rt.mix_node;
|
struct spa_graph_port *p = &this->rt.mix_port, *pp;
|
||||||
struct spa_graph_port *p, *pp;
|
|
||||||
|
|
||||||
spa_list_for_each(p, &node->ports[SPA_DIRECTION_INPUT], link)
|
|
||||||
if ((pp = p->peer) != NULL)
|
if ((pp = p->peer) != NULL)
|
||||||
spa_node_port_reuse_buffer(pp->node->implementation, port_id, buffer_id);
|
spa_node_port_reuse_buffer(pp->node->implementation, port_id, buffer_id);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue