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:
Barnabás Pőcze 2024-03-07 13:48:56 +01:00 committed by Wim Taymans
parent 1a6bb994a5
commit cf984fcd4c

View file

@ -470,8 +470,7 @@ static void add_bind_ctl_param(struct state *state, const snd_ctl_elem_value_t *
break; break;
case SND_CTL_ELEM_TYPE_BYTES: case SND_CTL_ELEM_TYPE_BYTES:
const void* bytes = snd_ctl_elem_value_get_bytes(elem); spa_pod_builder_bytes(b, snd_ctl_elem_value_get_bytes(elem), count);
spa_pod_builder_bytes(b, bytes, count);
break; break;
default: default: