diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-08-07 16:19:06 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-08-07 16:19:06 +0200 |
commit | 5d90fe26f3d0eb7078c052ffbad32faeeccf9841 (patch) | |
tree | 4d93fafa56d44f0df2dcba2a8dac28c64d94bf66 | |
parent | b89e07f8c0b1ecc9d46e779d54d5600d89c39e10 (diff) |
stream: use PIPEWIRE_NODE env as target_id fallback
-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) |