mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
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:
parent
eaeffa9ab0
commit
e9a5843a19
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue