mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
media-session: add sync_update
Add method to only emit the update event when all actions up to the sync point completed. Update the available bits on NODES/PORTS/STREAMS/ENDPOINTS
This commit is contained in:
parent
c7456d579a
commit
f06fc5a62b
3 changed files with 35 additions and 17 deletions
|
|
@ -64,6 +64,7 @@ struct sm_object {
|
|||
struct spa_hook proxy_listener;
|
||||
struct spa_hook object_listener;
|
||||
pw_destroy_t destroy;
|
||||
int pending;
|
||||
|
||||
struct spa_hook_list hooks;
|
||||
|
||||
|
|
@ -84,6 +85,8 @@ void *sm_object_add_data(struct sm_object *obj, const char *id, size_t size);
|
|||
void *sm_object_get_data(struct sm_object *obj, const char *id);
|
||||
int sm_object_remove_data(struct sm_object *obj, const char *id);
|
||||
|
||||
int sm_object_sync_update(struct sm_object *obj);
|
||||
|
||||
int sm_object_destroy(struct sm_object *obj);
|
||||
|
||||
struct sm_client {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue