From: Takashi Iwai Date: Mon, 25 Feb 2008 14:11:46 +0000 (+0100) Subject: Fix the state in snd_pcm_ioplug_pause() X-Git-Tag: v1.0.17rc1~21 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=6e0b0e7c6ad1cf47fbf2915b7aa7429a125a1eb5;p=alsa-lib.git 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 --- diff --git a/src/pcm/pcm_ioplug.c b/src/pcm/pcm_ioplug.c index 2a8ce543..642a9051 100644 --- a/src/pcm/pcm_ioplug.c +++ b/src/pcm/pcm_ioplug.c @@ -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;