clarify PIPEWIRE_NODE

PIPEWIRE_NODE is mapped to TARGET_OBJECT so it contains the serial or
the node name.
Make sure pw-stream maps this to TARGET_OBJECT.
Make JACK use the PIPEWIRE_NODE for serial or node.name.
This commit is contained in:
Wim Taymans 2023-01-10 17:11:43 +01:00
parent 2254c74fb9
commit 95f87301c7
3 changed files with 11 additions and 10 deletions

View file

@ -1892,7 +1892,7 @@ pw_stream_connect(struct pw_stream *stream,
if (target_id != PW_ID_ANY)
pw_properties_setf(stream->properties, PW_KEY_NODE_TARGET, "%d", target_id);
else if ((str = getenv("PIPEWIRE_NODE")) != NULL)
pw_properties_set(stream->properties, PW_KEY_NODE_TARGET, str);
pw_properties_set(stream->properties, PW_KEY_TARGET_OBJECT, str);
if ((flags & PW_STREAM_FLAG_AUTOCONNECT) &&
pw_properties_get(stream->properties, PW_KEY_NODE_AUTOCONNECT) == NULL) {
str = getenv("PIPEWIRE_AUTOCONNECT");