removed (commented out) assert in pcm_drain for avoiding the infinte

loop when a program is aborted and drain is failed.
This commit is contained in:
Takashi Iwai 2002-01-11 11:12:00 +00:00
parent eaeffa9ab0
commit e9a5843a19

View file

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