pulse-server: use STREAM_CAPTURE_SINK for monitor capture

Make the pulseaudio layer set the PW_KEY_STREAM_CAPTURE_SINK property
when a monitor device is selected as a source to make it easier for the
session manager to find the right source.
This commit is contained in:
Wim Taymans 2021-11-19 20:24:58 +01:00
parent d4d6458b5b
commit 5ae75e1d2a
5 changed files with 12 additions and 0 deletions

View file

@ -1817,6 +1817,8 @@ static int do_create_record_stream(struct client *client, uint32_t command, uint
pw_properties_setf(props,
PW_KEY_NODE_TARGET,
"%.*s", (int)strlen(source_name)-8, source_name);
pw_properties_set(props,
PW_KEY_STREAM_CAPTURE_SINK, "true");
} else {
pw_properties_set(props,
PW_KEY_NODE_TARGET, source_name);