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; }