port: don't send reuse_buffer on node again

When we get a reuse_buffer on the input mixer we should find the
linked mixer and send the reuse_buffer to that one, not the node
itself.
This commit is contained in:
Wim Taymans 2020-06-08 14:19:13 +02:00
parent 64fc8dda20
commit d566c8858c
2 changed files with 4 additions and 2 deletions

View file

@ -443,7 +443,8 @@ do_update_port(struct node *this,
port = GET_PORT(this, direction, port_id);
if (!port->valid) {
spa_log_debug(this->log, "node %p: adding port %d", this, port_id);
spa_log_debug(this->log, "node %p: adding port %d, direction %d",
this, port_id, direction);
port->id = port_id;
port->direction = direction;
port->have_format = false;

View file

@ -174,7 +174,8 @@ static int schedule_mix_reuse_buffer(void *object, uint32_t port_id, uint32_t bu
spa_list_for_each(mix, &this->rt.mix_list, rt_link) {
pw_log_trace_fp(NAME" %p: reuse buffer %d %d", this, port_id, buffer_id);
spa_node_port_reuse_buffer(this->node->node, port_id, buffer_id);
/* FIXME send reuse buffer to peer */
break;
}
return 0;
}