1
Fork 0

bluez5: avoid compiler warning

This commit is contained in:
Wim Taymans 2023-11-16 10:35:33 +01:00
parent aef99f840f
commit ca069974fc
1 changed files with 3 additions and 2 deletions

View File

@ -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;