pulse-server: Implement PA_STREAM_DONT_INHIBIT_AUTO_SUSPEND

We do this by setting the node as passive.

Fixes: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4255
Fixes: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4726
This commit is contained in:
Arun Raghavan 2025-06-02 14:36:38 +05:30 committed by Wim Taymans
parent 889d069b46
commit 6fe66cec2e

View file

@ -1756,6 +1756,9 @@ static int do_create_playback_stream(struct client *client, uint32_t command, ui
PW_KEY_TARGET_OBJECT, "%u", sink_index);
}
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;
if (stream->stream == NULL)