mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
param: add a new user seq field in the param-info
Add a new seq field in the param-info struct. Users can use this field to keep track of pending param updates. Store the latest seq number of the param update in the seq field. Remove all params that don't match the sequence number because they are too old. This avoids duplicate old params in pw-dump output. Rework the pulseaudio manager with this same method.
This commit is contained in:
parent
a989230cb5
commit
e6fd5888ee
4 changed files with 85 additions and 53 deletions
|
|
@ -72,7 +72,9 @@ struct spa_param_info {
|
|||
uint32_t flags;
|
||||
uint32_t user; /**< private user field. You can use this to keep
|
||||
* state. */
|
||||
uint32_t padding[5];
|
||||
int32_t seq; /**< private seq field. You can use this to keep
|
||||
* state of a pending update. */
|
||||
uint32_t padding[4];
|
||||
};
|
||||
|
||||
#define SPA_PARAM_INFO(id,flags) ((struct spa_param_info){ (id), (flags) })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue