mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
33f3a987ec
commit
8caab44782
1 changed files with 6 additions and 8 deletions
|
|
@ -1246,16 +1246,14 @@ static void stream_process(void *data)
|
||||||
pd.underrun_for = size;
|
pd.underrun_for = size;
|
||||||
pd.underrun = true;
|
pd.underrun = true;
|
||||||
}
|
}
|
||||||
if (!stream->corked) {
|
if (stream->attr.prebuf == 0 && !stream->corked) {
|
||||||
pd.missing = size;
|
pd.missing = size;
|
||||||
if (stream->attr.prebuf == 0) {
|
pd.playing_for = size;
|
||||||
pd.playing_for = size;
|
if (avail > 0) {
|
||||||
if (avail > 0) {
|
index += avail;
|
||||||
index += avail;
|
pd.read_inc = avail;
|
||||||
pd.read_inc = avail;
|
|
||||||
}
|
|
||||||
spa_ringbuffer_read_update(&stream->ring, index);
|
|
||||||
}
|
}
|
||||||
|
spa_ringbuffer_read_update(&stream->ring, index);
|
||||||
}
|
}
|
||||||
pw_log_debug("%p: [%s] underrun read:%u avail:%d max:%u",
|
pw_log_debug("%p: [%s] underrun read:%u avail:%d max:%u",
|
||||||
stream, client->name, index, avail, minreq);
|
stream, client->name, index, avail, minreq);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue