alsa: compare the scaled value to decide on xrun

This commit is contained in:
Wim Taymans 2020-05-13 15:46:50 +02:00
parent fea16cca14
commit 09b6ef41a8

View file

@ -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 {