mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pulse-server: don't request already requested data
When we are flushing, don't ask for already requested bytes or else we end up with too much data in our buffer. Fixes #1243
This commit is contained in:
parent
620e8de52a
commit
102b77ea03
1 changed files with 3 additions and 1 deletions
|
|
@ -2856,7 +2856,9 @@ static void stream_flush(struct stream *stream)
|
|||
if (stream->type == STREAM_TYPE_PLAYBACK) {
|
||||
stream->write_index = stream->read_index =
|
||||
stream->ring.writeindex = stream->ring.readindex;
|
||||
stream->missing = stream->attr.tlength;
|
||||
|
||||
stream->missing = stream->attr.tlength -
|
||||
SPA_MIN(stream->requested, stream->attr.tlength);
|
||||
|
||||
if (stream->attr.prebuf > 0)
|
||||
stream->in_prebuf = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue