mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-19 06:46:26 -04:00
pulse-server: use timeout also for creating sample-play streams
Add 35 sec timeout for PLAY_SAMPLE streams to start streaming, similar to what we do with normal streams, and fail playback if they don't start. This avoids pending sample playback using up resources indefinitely if streams fail to start for some reason, e.g. session manager is not linking them.
This commit is contained in:
parent
a50e9a995e
commit
f60e03b4ef
4 changed files with 29 additions and 1 deletions
|
|
@ -11,6 +11,8 @@
|
|||
#include <spa/utils/list.h>
|
||||
#include <spa/utils/hook.h>
|
||||
|
||||
#include <pipewire/pipewire.h>
|
||||
|
||||
struct sample;
|
||||
struct pw_core;
|
||||
struct pw_loop;
|
||||
|
|
@ -41,6 +43,7 @@ struct sample_play {
|
|||
uint32_t offset;
|
||||
uint32_t stride;
|
||||
struct spa_hook_list hooks;
|
||||
struct pw_timer timer;
|
||||
void *user_data;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue