impl-link: put the peer_id in the mix

Place the global id of the peer port in the mix so that we can track
the peer object that way.
This commit is contained in:
Wim Taymans 2021-08-03 17:33:49 +02:00
parent f4048ae663
commit 62f8ffcfb2
2 changed files with 4 additions and 0 deletions

View file

@ -1148,6 +1148,9 @@ struct pw_impl_link *pw_context_create_link(struct pw_context *context,
impl->io = SPA_IO_BUFFERS_INIT;
this->rt.out_mix.peer_id = input->global->id;
this->rt.in_mix.peer_id = output->global->id;
pw_impl_port_init_mix(output, &this->rt.out_mix);
pw_impl_port_init_mix(input, &this->rt.in_mix);

View file

@ -740,6 +740,7 @@ struct pw_impl_port_mix {
} port;
struct spa_io_buffers *io;
uint32_t id;
uint32_t peer_id;
unsigned int have_buffers:1;
};