audioconvert: enumerate propinfo correctly

This commit is contained in:
Wim Taymans 2019-03-18 11:18:27 +01:00
parent a23be2b0d8
commit a8e9e17159
2 changed files with 3 additions and 15 deletions

View file

@ -430,22 +430,10 @@ static int impl_node_enum_params(struct spa_node *node, int seq,
break;
case SPA_PARAM_PropInfo:
switch (result.index) {
case 0:
return spa_node_enum_params(this->channelmix, seq, id, start, num, filter);
default:
return 0;
}
break;
return spa_node_enum_params(this->channelmix, seq, id, start, num, filter);
case SPA_PARAM_Props:
switch (result.index) {
case 0:
return spa_node_enum_params(this->channelmix, seq, id, start, num, filter);
default:
return 0;
}
break;
return spa_node_enum_params(this->channelmix, seq, id, start, num, filter);
default:
return -ENOENT;

View file

@ -478,7 +478,7 @@ static int impl_node_enum_params(struct spa_node *node, int seq,
SPA_TYPE_OBJECT_PropInfo, id,
SPA_PROP_INFO_id, SPA_POD_Id(SPA_PROP_mute),
SPA_PROP_INFO_name, SPA_POD_String("Mute"),
SPA_PROP_INFO_type, SPA_POD_Bool(p->mute));
SPA_PROP_INFO_type, SPA_POD_CHOICE_Bool(p->mute));
break;
default:
return 0;