pulse-server: always set stream.capture.sink for monitor

Also set the stream.capture.sink when we find the sink by index, not
just by name when it ends with .monitor.
This commit is contained in:
Wim Taymans 2026-05-25 18:17:51 +02:00
parent e0d7b37826
commit 63eb53c1cb

View file

@ -2130,10 +2130,10 @@ static int do_create_record_stream(struct client *client, uint32_t command, uint
pw_properties_set(props, pw_properties_set(props,
PW_KEY_TARGET_OBJECT, source_name); PW_KEY_TARGET_OBJECT, source_name);
} }
if (is_monitor)
pw_properties_set(props,
PW_KEY_STREAM_CAPTURE_SINK, "true");
} }
if (is_monitor)
pw_properties_set(props,
PW_KEY_STREAM_CAPTURE_SINK, "true");
if (dont_inhibit_auto_suspend) if (dont_inhibit_auto_suspend)
pw_properties_set(props, PW_KEY_NODE_PASSIVE, "true"); pw_properties_set(props, PW_KEY_NODE_PASSIVE, "true");