Revert "pulse-server: always ask for more data when underrun"

This reverts commit e1576c53d4.

This is not quite right, it seems to break orca and qemu audio.

See #1900
This commit is contained in:
Wim Taymans 2021-12-14 10:21:11 +01:00
parent d79f9aa76e
commit cf1d09d0cc

View file

@ -1246,9 +1246,8 @@ static void stream_process(void *data)
pd.underrun_for = size;
pd.underrun = true;
}
if (!stream->corked) {
if (stream->attr.prebuf == 0 && !stream->corked) {
pd.missing = size;
if (stream->attr.prebuf == 0) {
pd.playing_for = size;
if (avail > 0) {
index += avail;
@ -1256,7 +1255,6 @@ 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 {