Fixed compilation problem for dmix (donot_close)

This commit is contained in:
Jaroslav Kysela 2003-02-12 11:49:47 +00:00
parent 13b79dcd56
commit b5316c86cc
2 changed files with 2 additions and 1 deletions

View file

@ -659,7 +659,7 @@ int snd_pcm_close(snd_pcm_t *pcm)
{
int err;
assert(pcm);
if (pcm->setup) {
if (pcm->setup && !pcm->donot_close) {
snd_pcm_drop(pcm);
err = snd_pcm_hw_free(pcm);
if (err < 0)