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);
|
||||||
spa_pod_builder_int(b, 8000);
|
spa_pod_builder_int(b, 8000);
|
||||||
}
|
}
|
||||||
if (i == 0)
|
|
||||||
return -EINVAL;
|
|
||||||
if (i > 1)
|
if (i > 1)
|
||||||
choice->body.type = SPA_CHOICE_Enum;
|
choice->body.type = SPA_CHOICE_Enum;
|
||||||
spa_pod_builder_pop(b, &f[1]);
|
spa_pod_builder_pop(b, &f[1]);
|
||||||
|
|
||||||
|
if (i == 0)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
res = channels_to_positions(conf.channels, position);
|
res = channels_to_positions(conf.channels, position);
|
||||||
if (res == 0)
|
if (res == 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Reference in New Issue