Fix the state in snd_pcm_ioplug_pause()

The states[] in snd_pcm_ioplug_pause() has wrong values.  They should be
swapped.  ALSA bug#3796:
	https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3796
This commit is contained in:
Takashi Iwai 2008-02-25 15:11:46 +01:00
parent b2bd775375
commit 6e0b0e7c6a

View file

@ -484,7 +484,7 @@ static int snd_pcm_ioplug_pause(snd_pcm_t *pcm, int enable)
{
ioplug_priv_t *io = pcm->private_data;
static snd_pcm_state_t states[2] = {
SND_PCM_STATE_PAUSED, SND_PCM_STATE_RUNNING
SND_PCM_STATE_RUNNING, SND_PCM_STATE_PAUSED
};
int prev, err;