mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
stream: Add node.autoconnect stream.properties
If the node.autoconnect property is set in the stream.properties, ignore the AUTOCONNECT flag value. This makes it possible to force AUTOCONNECT either way. See #964
This commit is contained in:
parent
ec0b2b8dd7
commit
f78be58568
4 changed files with 5 additions and 1 deletions
|
|
@ -70,6 +70,7 @@ filter.properties = {
|
|||
|
||||
stream.properties = {
|
||||
#node.latency = 1024/48000
|
||||
#node.autoconnect = true
|
||||
#resample.quality = 4
|
||||
#channelmix.normalize = false
|
||||
#channelmix.mix-lfe = true
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ filter.properties = {
|
|||
|
||||
stream.properties = {
|
||||
#node.latency = 1024/48000
|
||||
#node.autoconnect = true
|
||||
#resample.quality = 4
|
||||
#channelmix.normalize = false
|
||||
#channelmix.mix-lfe = false
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ context.modules = [
|
|||
|
||||
stream.properties = {
|
||||
#node.latency = 1024/48000
|
||||
#node.autoconnect = true
|
||||
#resample.quality = 4
|
||||
#channelmix.normalize = false
|
||||
#channelmix.mix-lfe = false
|
||||
|
|
|
|||
|
|
@ -1554,7 +1554,8 @@ pw_stream_connect(struct pw_stream *stream,
|
|||
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) {
|
||||
if ((flags & PW_STREAM_FLAG_AUTOCONNECT) &&
|
||||
pw_properties_get(stream->properties, PW_KEY_NODE_AUTOCONNECT) == NULL) {
|
||||
str = getenv("PIPEWIRE_AUTOCONNECT");
|
||||
pw_properties_set(stream->properties, PW_KEY_NODE_AUTOCONNECT, str ? str : "true");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue