mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
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:
parent
b2bd775375
commit
6e0b0e7c6a
1 changed files with 1 additions and 1 deletions
|
|
@ -484,7 +484,7 @@ static int snd_pcm_ioplug_pause(snd_pcm_t *pcm, int enable)
|
||||||
{
|
{
|
||||||
ioplug_priv_t *io = pcm->private_data;
|
ioplug_priv_t *io = pcm->private_data;
|
||||||
static snd_pcm_state_t states[2] = {
|
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;
|
int prev, err;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue