mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-07 04:06:12 -05:00
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:
parent
d4d6458b5b
commit
5ae75e1d2a
5 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue