mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pulse-server: make sure we never try to ask more than tlength
This commit is contained in:
parent
76aff7640f
commit
235d25316c
1 changed files with 1 additions and 0 deletions
|
|
@ -1378,6 +1378,7 @@ do_process_done(struct spa_loop *loop,
|
|||
send_stream_started(stream);
|
||||
}
|
||||
stream->missing += pd->playing_for + pd->underrun_for;
|
||||
stream->missing = SPA_MIN(stream->missing, stream->attr.tlength);
|
||||
stream->playing_for += pd->playing_for;
|
||||
stream->underrun_for += pd->underrun_for;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue