mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
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:
parent
e3ddcc3b19
commit
e31f9aa0f2
4 changed files with 15 additions and 28 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue