mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Removed drain call from the snd_pcm_close() function, data are always dropped
This commit is contained in:
parent
9b46e6b3f8
commit
3bcd8ebfcf
1 changed files with 1 additions and 5 deletions
|
|
@ -643,11 +643,7 @@ int snd_pcm_close(snd_pcm_t *pcm)
|
|||
int err;
|
||||
assert(pcm);
|
||||
if (pcm->setup) {
|
||||
if ((pcm->mode & SND_PCM_NONBLOCK) ||
|
||||
pcm->stream == SND_PCM_STREAM_CAPTURE)
|
||||
snd_pcm_drop(pcm);
|
||||
else
|
||||
snd_pcm_drain(pcm);
|
||||
snd_pcm_drop(pcm);
|
||||
err = snd_pcm_hw_free(pcm);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue