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:
Wim Taymans 2025-06-02 11:48:01 +02:00
parent 6fe66cec2e
commit 70f55d1689

View file

@ -2051,6 +2051,8 @@ static int do_create_record_stream(struct client *client, uint32_t command, uint
pw_properties_set(props,
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);
props = NULL;