mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
889d069b46
commit
6fe66cec2e
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue