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

@ -388,6 +388,8 @@ static int create_streams(struct impl *impl, struct client *client)
PW_KEY_NODE_GROUP, "pipewire.dummy",
PW_KEY_NODE_LATENCY, DEFAULT_LATENCY,
PW_KEY_NODE_TARGET, pw_properties_get(impl->props, "capture.node"),
PW_KEY_STREAM_CAPTURE_SINK, pw_properties_get(impl->props,
PW_KEY_STREAM_CAPTURE_SINK),
PW_KEY_NODE_NETWORK, "true",
NULL);
if (props == NULL)