mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-07-22 18:54:36 +00:00
alsa: compare the scaled value to decide on xrun
This commit is contained in:
parent
fea16cca14
commit
09b6ef41a8
|
@ -281,7 +281,7 @@ snd_pcm_pipewire_process_record(snd_pcm_pipewire_t *pw, struct pw_buffer *b, snd
|
|||
avail = SPA_MIN(maxsize, *hw_avail * bpf);
|
||||
index = d[0].chunk->offset;
|
||||
|
||||
if (maxsize > *hw_avail)
|
||||
if (avail < maxsize)
|
||||
pw->xrun_detected = true;
|
||||
|
||||
do {
|
||||
|
|
Loading…
Reference in a new issue