mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: add a pulse.idle.timeout option
When a client is not sending any data when it should be and causes an underrun, mark it as idle and record the timestamp. When a client is idle for pulse.idle.timeout seconds, set the stream as inactive. When more data is received, set it back to active. Add a pulse.idle.timeout option to set a global server default or a per-stream value. Set the server default to 5 seconds. A value of 0 can be used to disable this feature. With this change, badly behaving clients that are not sending any data will be paused so that the sinks can suspend to save battery power. Fixes #2839
This commit is contained in:
parent
b1c0662a00
commit
a0adb52124
6 changed files with 42 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ struct defs {
|
|||
struct sample_spec sample_spec;
|
||||
struct channel_map channel_map;
|
||||
uint32_t quantum_limit;
|
||||
uint32_t idle_timeout;
|
||||
};
|
||||
|
||||
struct stats {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue