spa: flags just have 1 value

This commit is contained in:
Wim Taymans 2025-09-12 16:17:26 +02:00
parent 2be4c2ba51
commit 818ef4e138
2 changed files with 4 additions and 3 deletions

View file

@ -1019,8 +1019,9 @@ A choice contains an array of possible values.
child2 and child3, in steps of child4 in the value array.
- Enum (3) : child1 is a default value, options are any value from
the value array, preferred values come first.
- Flags (4) : child1 is a default value, options are any value from
the value array, preferred values come first.
- Flags (4) : only child1 is a flag value. When filtering, the flags
are AND-ed together.
- flags: must be 0
## Pod (20)

View file

@ -134,7 +134,7 @@ enum spa_choice_type {
SPA_CHOICE_Range, /**< range: default, min, max */
SPA_CHOICE_Step, /**< range with step: default, min, max, step */
SPA_CHOICE_Enum, /**< list: default, alternative,... */
SPA_CHOICE_Flags, /**< flags: default, possible flags,... */
SPA_CHOICE_Flags, /**< flags: first value is flags */
};
struct spa_pod_choice_body {