pod: document that the choice array might have excess elements

The choice array might have excess elements when the type has been
changed, for example by fixation. This is not a problem and the
excess elements should simply be ignored.
This commit is contained in:
Wim Taymans 2020-02-27 16:23:12 +01:00
parent a3582f0e0f
commit c3b550478a

View file

@ -144,7 +144,8 @@ struct spa_pod_choice_body {
uint32_t type; /**< type of choice, one of enum spa_choice_type */
uint32_t flags; /**< extra flags */
struct spa_pod child;
/* array with elements of child.size follows */
/* array with elements of child.size follows. Note that there might be more
* elements than required by \a type, which should be ignored. */
};
struct spa_pod_choice {