mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-19 07:00:10 -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
|
|
@ -28,7 +28,7 @@ extern "C" {
|
|||
|
||||
#define SPA_CHOICE_RANGE(def,min,max) 3,(def),(min),(max)
|
||||
#define SPA_CHOICE_STEP(def,min,max,step) 4,(def),(min),(max),(step)
|
||||
#define SPA_CHOICE_ENUM(n_vals,...) (n_vals),##__VA_ARGS__
|
||||
#define SPA_CHOICE_ENUM(n_vals,def,alt1,...) (n_vals),(def),(alt1),##__VA_ARGS__
|
||||
#define SPA_CHOICE_FLAGS(flags) 1, (flags)
|
||||
#define SPA_CHOICE_FEATURES(features) 1, (features)
|
||||
#define SPA_CHOICE_BOOL(def) 3,(def),(def),!(def)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue