mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: handle prebuf state better
When we have a prebuf value, we start in the prebuf state. We go back to prebuf when we have a prebuf value and an empty ringbuffer.
This commit is contained in:
parent
16665d74d2
commit
a8139b7acf
2 changed files with 4 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ static bool stream_prebuf_active(struct stream *stream)
|
|||
if (stream->in_prebuf)
|
||||
return avail < (int32_t) stream->attr.prebuf;
|
||||
else
|
||||
return stream->attr.prebuf > 0 && avail >= 0;
|
||||
return stream->attr.prebuf > 0 && avail <= 0;
|
||||
}
|
||||
|
||||
uint32_t stream_pop_missing(struct stream *stream)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue