mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pulse-server: also advance read pointer in underrun
So that we ask for more data from the client. Also retested with #2799 that caused this regression. Fixes #2821
This commit is contained in:
parent
38382d002d
commit
b720da771e
1 changed files with 4 additions and 3 deletions
|
|
@ -1433,10 +1433,11 @@ static void stream_process(void *data)
|
|||
stream->buffer, MAXLENGTH,
|
||||
index % MAXLENGTH,
|
||||
p, avail);
|
||||
index += avail;
|
||||
pd.read_inc = avail;
|
||||
spa_ringbuffer_read_update(&stream->ring, index);
|
||||
}
|
||||
index += size;
|
||||
pd.read_inc = size;
|
||||
spa_ringbuffer_read_update(&stream->ring, index);
|
||||
|
||||
pd.playing_for = size;
|
||||
}
|
||||
pw_log_debug("%p: [%s] underrun read:%u avail:%d max:%u",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue