]> git.alsa-project.org Git - alsa-lib.git/commitdiff
removed (commented out) assert in pcm_drain for avoiding the infinte
authorTakashi Iwai <tiwai@suse.de>
Fri, 11 Jan 2002 11:12:00 +0000 (11:12 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 11 Jan 2002 11:12:00 +0000 (11:12 +0000)
loop when a program is aborted and drain is failed.

src/pcm/pcm.c

index 22609e93c81269ba14bdb914e6ba1d74a0a7be5a..6849b97430bb95fd57685cedf2595a945032f2b8 100644 (file)
@@ -651,8 +651,8 @@ int snd_pcm_hw_free(snd_pcm_t *pcm)
                if (err < 0)
                        return err;
        }
-       assert(snd_pcm_state(pcm) == SND_PCM_STATE_SETUP ||
-              snd_pcm_state(pcm) == SND_PCM_STATE_PREPARED);
+       // assert(snd_pcm_state(pcm) == SND_PCM_STATE_SETUP ||
+       //        snd_pcm_state(pcm) == SND_PCM_STATE_PREPARED);
        err = pcm->ops->hw_free(pcm->op_arg);
        pcm->setup = 0;
        if (err < 0)