OSDN Git Service

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 22609e9..6849b97 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)