pulse-server: only use passive for devices

The dont-inhibit-auto-suspend flag does not do anything when using
direct-on-input-idx (capturing from a stream) in pulseaudio, so also
make it do nothing on pulse-server.

See #4991
This commit is contained in:
Wim Taymans 2025-11-25 10:17:14 +01:00
parent fc26e6321b
commit 2c6aa8e0d0

View file

@ -2051,6 +2051,7 @@ static int do_create_record_stream(struct client *client, uint32_t command, uint
flags |= PW_STREAM_FLAG_DONT_RECONNECT;
if (direct_on_input_idx != SPA_ID_INVALID) {
dont_inhibit_auto_suspend = false;
source_index = direct_on_input_idx;
} else if (source_name != NULL) {
if ((id = atoi(source_name)) != 0)