mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: alsa: fix clang build
Variable declarations after a label are not allowed,
and clang does not accept them. Fix the build failure
by removing the variable.
Fixes b3fbd0e607 ("alsa-pcm: add_bind_ctl_param: add support for array")
This commit is contained in:
parent
1a6bb994a5
commit
cf984fcd4c
1 changed files with 1 additions and 2 deletions
|
|
@ -470,8 +470,7 @@ static void add_bind_ctl_param(struct state *state, const snd_ctl_elem_value_t *
|
|||
break;
|
||||
|
||||
case SND_CTL_ELEM_TYPE_BYTES:
|
||||
const void* bytes = snd_ctl_elem_value_get_bytes(elem);
|
||||
spa_pod_builder_bytes(b, bytes, count);
|
||||
spa_pod_builder_bytes(b, snd_ctl_elem_value_get_bytes(elem), count);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue