mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-02 22:25:17 +00:00
bluez5: avoid compiler warning
This commit is contained in:
parent
aef99f840f
commit
ca069974fc
|
@ -556,12 +556,13 @@ static int codec_enum_config(const struct media_codec *codec, uint32_t flags,
|
|||
spa_pod_builder_int(b, 8000);
|
||||
spa_pod_builder_int(b, 8000);
|
||||
}
|
||||
if (i == 0)
|
||||
return -EINVAL;
|
||||
if (i > 1)
|
||||
choice->body.type = SPA_CHOICE_Enum;
|
||||
spa_pod_builder_pop(b, &f[1]);
|
||||
|
||||
if (i == 0)
|
||||
return -EINVAL;
|
||||
|
||||
res = channels_to_positions(conf.channels, position);
|
||||
if (res == 0)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Reference in a new issue