OSDN Git Service

Removed drain call from the snd_pcm_close() function, data are always dropped
authorJaroslav Kysela <perex@perex.cz>
Wed, 26 Jun 2002 18:12:07 +0000 (18:12 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 26 Jun 2002 18:12:07 +0000 (18:12 +0000)
src/pcm/pcm.c

index f3a80ea..76b0f27 100644 (file)
@@ -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;