mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
meta: remove shared meta data
Make a method to find the memory block for the given ptr. We can use this to find the memfd of the memory if there is any. We can then remove the Shared metadata on buffers.
This commit is contained in:
parent
75cdd20207
commit
140c3959ab
10 changed files with 161 additions and 132 deletions
|
|
@ -29,10 +29,11 @@ struct spa_list {
|
|||
struct spa_list *prev;
|
||||
};
|
||||
|
||||
#define SPA_LIST_INIT(list) (struct spa_list){ list, list };
|
||||
|
||||
static inline void spa_list_init(struct spa_list *list)
|
||||
{
|
||||
list->next = list;
|
||||
list->prev = list;
|
||||
*list = SPA_LIST_INIT(list);
|
||||
}
|
||||
|
||||
static inline void spa_list_insert(struct spa_list *list, struct spa_list *elem)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue