mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-22 01:40:33 -05:00
meta: add metadata features
Add a new features property to the metadata param. This should be of type CHOICE_FEATURES_Int and should contain the extra features supported by this metadata. Make a special features metadata type that is a combination of the metadata type in the upper 16 bits and the features for that type in the lower 16 bits. Make a function to search if a type has certain feature bits. On the server, when negotiating buffers and metadata, check the result of the features after filtering and if they are not 0, place them as 0 sized extra feature metadata on the buffer. Add some metadata features for the sync_timeline, one that specifies that the RELEASE flag is supported. With this in place, a producer can see if a consumer supports the UNSCHEDULED_RELEASE flag. See #4885
This commit is contained in:
parent
a859c7a651
commit
00d983a40d
4 changed files with 31 additions and 4 deletions
|
|
@ -33,6 +33,7 @@ enum spa_param_meta {
|
|||
SPA_PARAM_META_START,
|
||||
SPA_PARAM_META_type, /**< the metadata, one of enum spa_meta_type (Id enum spa_meta_type) */
|
||||
SPA_PARAM_META_size, /**< the expected maximum size the meta (Int) */
|
||||
SPA_PARAM_META_features, /**< meta data features (Features Int) */
|
||||
};
|
||||
|
||||
/** properties for SPA_TYPE_OBJECT_ParamIO */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue