]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix the state in snd_pcm_ioplug_pause()
authorTakashi Iwai <tiwai@suse.de>
Mon, 25 Feb 2008 14:11:46 +0000 (15:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Feb 2008 14:11:46 +0000 (15:11 +0100)
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

src/pcm/pcm_ioplug.c

index 2a8ce5431a10c6c5430a15d0b0ad6ed636b083f7..642a90519efc2d606bec9a5cba1bc5df6c4ba507 100644 (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;