mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-19 16:01:45 +00:00
pulse-server: always ask for more data when underrun
Ask for more data when we are in underrun and not corked. Fixes paplay and changing the quantum to something large.
This commit is contained in:
parent
3ab3157bf1
commit
e1576c53d4
|
@ -1246,8 +1246,9 @@ static void stream_process(void *data)
|
|||
pd.underrun_for = size;
|
||||
pd.underrun = true;
|
||||
}
|
||||
if (stream->attr.prebuf == 0 && !stream->corked) {
|
||||
if (!stream->corked) {
|
||||
pd.missing = size;
|
||||
if (stream->attr.prebuf == 0) {
|
||||
pd.playing_for = size;
|
||||
if (avail > 0) {
|
||||
index += avail;
|
||||
|
@ -1255,6 +1256,7 @@ static void stream_process(void *data)
|
|||
}
|
||||
spa_ringbuffer_read_update(&stream->ring, index);
|
||||
}
|
||||
}
|
||||
pw_log_debug("%p: [%s] underrun read:%u avail:%d max:%u",
|
||||
stream, client->name, index, avail, minreq);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue