mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pulse-server: skip underrun more aggressively
Skip all of the underrun bytes immediately. See #638
This commit is contained in:
parent
e172effe71
commit
ac3555d6fc
1 changed files with 4 additions and 0 deletions
|
|
@ -1550,6 +1550,10 @@ static void stream_process(void *data)
|
|||
size = SPA_MIN(buf->datas[0].maxsize, minreq);
|
||||
memset(p, 0, size);
|
||||
|
||||
/* skip the remainder, avail can be negative and thus
|
||||
* we can skip a lot here. */
|
||||
size = (int32_t)minreq - avail;
|
||||
|
||||
if (stream->draining) {
|
||||
stream->draining = false;
|
||||
pw_stream_flush(stream->stream, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue