mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
spa: ensure enum always has 2 values
We need at least a default value and the default value as a possible value. For enum type in the PropInfo we usually list just the basic type and then use labels to list alternatives.
This commit is contained in:
parent
ef7d4a3fc3
commit
41cdd82291
3 changed files with 4 additions and 4 deletions
|
|
@ -1486,7 +1486,7 @@ spa_v4l2_enum_controls(struct impl *this, int seq,
|
|||
spa_pod_builder_push_object(&b.b, &f[0], SPA_TYPE_OBJECT_PropInfo, SPA_PARAM_PropInfo);
|
||||
spa_pod_builder_add(&b.b,
|
||||
SPA_PROP_INFO_id, SPA_POD_Id(prop_id),
|
||||
SPA_PROP_INFO_type, SPA_POD_CHOICE_ENUM_Int(1, (int32_t)queryctrl.default_value),
|
||||
SPA_PROP_INFO_type, SPA_POD_Int((int32_t)queryctrl.default_value),
|
||||
SPA_PROP_INFO_description, SPA_POD_String(queryctrl.name),
|
||||
0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue