mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: Correctly bail if pitch ctls are not available
The `goto error` got misplaced while refactoring this code for bind-ctls.
This commit is contained in:
parent
ac3bdeba4e
commit
c2e4e336ac
1 changed files with 2 additions and 1 deletions
|
|
@ -902,8 +902,9 @@ static int probe_pitch_ctl(struct state *state, const char* device_name)
|
|||
if (opened) {
|
||||
snd_ctl_close(state->ctl);
|
||||
state->ctl = NULL;
|
||||
goto error;
|
||||
}
|
||||
|
||||
goto error;
|
||||
}
|
||||
|
||||
snd_ctl_elem_value_set_integer(state->pitch_elem, 0, 1000000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue