Corrected pause callback

This commit is contained in:
Jaroslav Kysela 2003-02-09 18:55:11 +00:00
parent 3b6638e8ce
commit e1b91846c2

View file

@ -161,9 +161,12 @@ static int snd_pcm_null_pause(snd_pcm_t *pcm, int enable)
if (enable) {
if (null->state != SND_PCM_STATE_RUNNING)
return -EBADFD;
} else if (null->state != SND_PCM_STATE_PAUSED)
return -EBADFD;
null->state = SND_PCM_STATE_PAUSED;
null->state = SND_PCM_STATE_PAUSED;
} else {
if (null->state != SND_PCM_STATE_PAUSED)
return -EBADFD;
null->state = SND_PCM_STATE_RUNNING;
}
return 0;
}