mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pulse-server: Implement record PA_STREAM_DONT_INHIBIT_AUTO_SUSPEND
Also implement the flag for record streams, where it is more usually used, like in pavucontrol to disable starting a network source.
This commit is contained in:
parent
6fe66cec2e
commit
70f55d1689
1 changed files with 2 additions and 0 deletions
|
|
@ -2051,6 +2051,8 @@ static int do_create_record_stream(struct client *client, uint32_t command, uint
|
||||||
pw_properties_set(props,
|
pw_properties_set(props,
|
||||||
PW_KEY_STREAM_CAPTURE_SINK, "true");
|
PW_KEY_STREAM_CAPTURE_SINK, "true");
|
||||||
}
|
}
|
||||||
|
if (dont_inhibit_auto_suspend)
|
||||||
|
pw_properties_set(props, PW_KEY_NODE_PASSIVE, "true");
|
||||||
|
|
||||||
stream->stream = pw_stream_new(client->core, name, props);
|
stream->stream = pw_stream_new(client->core, name, props);
|
||||||
props = NULL;
|
props = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue