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

@ -208,7 +208,7 @@ static void configure_device(pa_stream *s)
s->device_index = g->id;
}
if ((str = pw_properties_get(g->props, PW_KEY_NODE_NAME)) == NULL)
if ((str = pw_properties_get(g->props, PW_KEY_ENDPOINT_NAME)) == NULL)
s->device_name = strdup("unknown");
else
s->device_name = strdup(str);