From: Abramo Bagnara Date: Wed, 7 Mar 2001 13:56:13 +0000 (+0000) Subject: Unconditionally drop on capture close X-Git-Tag: v1.0.3~927 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=751c88c0e6667ef8989e061a1d0ae6becf9eaf71;p=alsa-lib.git Unconditionally drop on capture close --- diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 1effe000..51b3e458 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -56,7 +56,8 @@ int snd_pcm_close(snd_pcm_t *pcm) int err; assert(pcm); if (pcm->setup) { - if (pcm->mode & SND_PCM_NONBLOCK) + if (pcm->mode & SND_PCM_NONBLOCK || + pcm->stream == SND_PCM_STREAM_CAPTURE) snd_pcm_drop(pcm); else snd_pcm_drain(pcm);