alsa: don't set id in PropInfo for params

The id is useless when dealing with props params, we need to use the
name of the property as the key. Also the id can clash with other ids
of other plugins.
This commit is contained in:
Wim Taymans 2021-12-01 11:39:30 +01:00
parent e3ddcc3b19
commit e31f9aa0f2
4 changed files with 15 additions and 28 deletions

View file

@ -181,8 +181,7 @@ static int impl_node_enum_params(void *object, int seq,
SPA_PROP_INFO_type, SPA_POD_CHOICE_RANGE_Long(0LL, 0LL, INT64_MAX));
break;
default:
param = spa_alsa_enum_propinfo(this, result.index - 6,
SPA_PROP_START_CUSTOM + result.index - 5, &b);
param = spa_alsa_enum_propinfo(this, result.index - 6, &b);
if (param == NULL)
return 0;
}