pulse-server: keep track of dont_inhibit_auto_suspend

Keep the flag dont_inhibit_auto_suspend around and use it do decide when
to send suspend messages to the client.

We don't always want to send suspend messages when the stream state changes
because that could happen because the stream was, for example, relinked.

The intention of the suspend message is mostly for monitor streams that
use the dont-inhibit flag and want to follow the suspend state of the
sink.

See #5273
This commit is contained in:
Wim Taymans 2026-05-25 18:13:12 +02:00
parent 3b3b896b4f
commit e0d7b37826
2 changed files with 7 additions and 4 deletions

View file

@ -102,6 +102,7 @@ struct stream {
unsigned int is_paused:1;
unsigned int fail_on_suspend:1;
unsigned int is_suspended:1;
unsigned int dont_inhibit_auto_suspend:1;
};
struct stream *stream_new(struct client *client, enum stream_type type, uint32_t create_tag,