diff options
-rw-r--r-- | src/pipewire/stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index e26d08cf..4b21e505 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -1466,6 +1466,8 @@ 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); if (flags & PW_STREAM_FLAG_AUTOCONNECT) pw_properties_set(stream->properties, PW_KEY_NODE_AUTOCONNECT, "true"); if (flags & PW_STREAM_FLAG_DRIVER) |