mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-10 13:30:01 -05:00
Fixed XRUN detection condition in avail() callback
This commit is contained in:
parent
15357a9875
commit
20bfec221e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue