bluez5: improve param enumeration

Return -EIO when we can't enumerate the params
Don't check for end-of-params in a2dp-sink, we do that in the codec.
This commit is contained in:
Wim Taymans 2020-12-17 11:43:53 +01:00
parent e8dcd7f5f9
commit 90bdab8414
4 changed files with 3 additions and 5 deletions

View file

@ -894,8 +894,6 @@ impl_node_port_enum_params(void *object, int seq,
switch (id) {
case SPA_PARAM_EnumFormat:
if (result.index > 0)
return 0;
if (this->codec == NULL)
return -EIO;