mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-04 06:46:24 -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
|
|
@ -107,7 +107,7 @@ struct stream *stream_new(struct client *client, enum stream_type type, uint32_t
|
|||
/* Time out if we don't get a link and can't send a reply to create in 35s. Client will time out in
|
||||
* 30s and clean up its stream anyway. */
|
||||
pw_timer_queue_add(stream->impl->timer_queue, &stream->timer, NULL,
|
||||
35 * SPA_NSEC_PER_SEC, create_stream_timeout, stream);
|
||||
STREAM_CREATE_TIMEOUT, create_stream_timeout, stream);
|
||||
|
||||
return stream;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue