mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
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:
parent
f4048ae663
commit
62f8ffcfb2
2 changed files with 4 additions and 0 deletions
|
|
@ -1148,6 +1148,9 @@ struct pw_impl_link *pw_context_create_link(struct pw_context *context,
|
||||||
|
|
||||||
impl->io = SPA_IO_BUFFERS_INIT;
|
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(output, &this->rt.out_mix);
|
||||||
pw_impl_port_init_mix(input, &this->rt.in_mix);
|
pw_impl_port_init_mix(input, &this->rt.in_mix);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -740,6 +740,7 @@ struct pw_impl_port_mix {
|
||||||
} port;
|
} port;
|
||||||
struct spa_io_buffers *io;
|
struct spa_io_buffers *io;
|
||||||
uint32_t id;
|
uint32_t id;
|
||||||
|
uint32_t peer_id;
|
||||||
unsigned int have_buffers:1;
|
unsigned int have_buffers:1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue