mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
dmix plugin: drain - quickfix for the previous patch
This commit is contained in:
parent
fdc898d411
commit
e4377b1645
1 changed files with 6 additions and 6 deletions
|
|
@ -674,16 +674,16 @@ static int __snd_pcm_dmix_drain(snd_pcm_t *pcm)
|
|||
case SND_PCM_STATE_SUSPENDED:
|
||||
err = -ESTRPIPE;
|
||||
goto done;
|
||||
case SND_PCM_STATE_DRAINING:
|
||||
if (pcm->mode & SND_PCM_NONBLOCK) {
|
||||
err = -EAGAIN;
|
||||
goto done;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (pcm->mode & SND_PCM_NONBLOCK) {
|
||||
if (dmix->state == SND_PCM_STATE_DRAINING) {
|
||||
err = -EAGAIN;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
} while (dmix->state == SND_PCM_STATE_DRAINING);
|
||||
done:
|
||||
pcm->stop_threshold = stop_threshold;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue