Skip to content

Commit

Permalink
control: remap - fix an infinite recursive call in the async callback
Browse files Browse the repository at this point in the history
The function snd_ctl_remap_async will call itself infinitely. Looks like
a typo.

Fixes: a64391a ("control: remap plugin - initial version")
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
cwhuang authored and perexg committed Jun 14, 2021
1 parent 8253c1c commit f4c061f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control/control_remap.c
Expand Up @@ -323,7 +323,7 @@ static int snd_ctl_remap_nonblock(snd_ctl_t *ctl, int nonblock)
static int snd_ctl_remap_async(snd_ctl_t *ctl, int sig, pid_t pid)
{
snd_ctl_remap_t *priv = ctl->private_data;
return snd_ctl_remap_async(priv->child, sig, pid);
return snd_ctl_async(priv->child, sig, pid);
}

static int snd_ctl_remap_subscribe_events(snd_ctl_t *ctl, int subscribe)
Expand Down

0 comments on commit f4c061f

Please sign in to comment.