pulse: find linked endpoints

Set the stream node object-id as the node.id on the endpoint so that
the pulse api can find the linked endpoint.
This commit is contained in:
Wim Taymans 2019-11-15 18:21:04 +01:00
parent 709a52e286
commit 8c43ebaf3e
6 changed files with 35 additions and 40 deletions

View file

@ -245,10 +245,10 @@ struct global {
struct spa_hook object_listener;
union {
/* for links */
/* for links, globals are endpoints */
struct {
struct global *src;
struct global *dst;
struct global *output;
struct global *input;
} link_info;
struct {
uint32_t endpoint_id;
@ -262,6 +262,7 @@ struct global {
uint32_t n_channel_volumes;
float channel_volumes[SPA_AUDIO_MAX_CHANNELS];
uint32_t device_id;
uint32_t node_id;
} endpoint_info;
/* for devices */
struct {