mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-30 06:46:49 -04:00
pulse: improve stream suspended state handling
Only send out SUSPENDED event when there is a change in the suspended state. This avoids sending out unsuspend events when we simply uncork. Implement the fail_on_suspend flag for capture and playback streams. Instead of suspending those streams, we need to kill them.
This commit is contained in:
parent
0310bb5c5c
commit
370d190572
3 changed files with 20 additions and 6 deletions
|
|
@ -98,6 +98,8 @@ struct stream {
|
|||
unsigned int pending:1;
|
||||
unsigned int is_idle:1;
|
||||
unsigned int is_paused:1;
|
||||
unsigned int fail_on_suspend:1;
|
||||
unsigned int is_suspended:1;
|
||||
};
|
||||
|
||||
struct stream *stream_new(struct client *client, enum stream_type type, uint32_t create_tag,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue