From: Jaroslav Kysela Date: Thu, 21 Feb 2002 08:14:44 +0000 (+0000) Subject: Fixed XRUN detection condition in avail() callback X-Git-Tag: v1.0.3~479 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=20bfec221edc50c731576208271a3632780b7e19;p=alsa-lib.git Fixed XRUN detection condition in avail() callback --- diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c index 5669f5f7..9d6d5dc4 100644 --- a/src/pcm/pcm_hw.c +++ b/src/pcm/pcm_hw.c @@ -635,7 +635,7 @@ static snd_pcm_sframes_t snd_pcm_hw_avail_update(snd_pcm_t *pcm) return err; } } - if (avail > pcm->buffer_size) + if (avail >= pcm->stop_threshold) return -EPIPE; return avail; }