mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
Fixed the share->state when DRAINING
This commit is contained in:
parent
7d335794f1
commit
07e66fcfbd
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ static snd_pcm_uframes_t _snd_pcm_share_missing(snd_pcm_t *pcm)
|
|||
share->hw_ptr = slave->hw_ptr;
|
||||
avail = snd_pcm_mmap_avail(pcm);
|
||||
if (avail >= pcm->stop_threshold) {
|
||||
_snd_pcm_share_stop(pcm, SND_PCM_STATE_XRUN);
|
||||
_snd_pcm_share_stop(pcm, share->state == SND_PCM_STATE_DRAINING ? SND_PCM_STATE_SETUP : SND_PCM_STATE_XRUN);
|
||||
goto update_poll;
|
||||
}
|
||||
hw_avail = buffer_size - avail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue