mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -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
|
|
@ -79,13 +79,6 @@ int spa_debug_buffer(const struct spa_buffer *buffer)
|
|||
fprintf(stderr, " y: %d\n", h->y);
|
||||
fprintf(stderr, " width: %d\n", h->width);
|
||||
fprintf(stderr, " height: %d\n", h->height);
|
||||
} else if (!strcmp(type_name, SPA_TYPE_META__Shared)) {
|
||||
struct spa_meta_shared *h = m->data;
|
||||
fprintf(stderr, " struct spa_meta_shared:\n");
|
||||
fprintf(stderr, " flags: %d\n", h->flags);
|
||||
fprintf(stderr, " fd: %d\n", h->fd);
|
||||
fprintf(stderr, " offset: %d\n", h->offset);
|
||||
fprintf(stderr, " size: %d\n", h->size);
|
||||
} else {
|
||||
fprintf(stderr, " Unknown:\n");
|
||||
spa_debug_dump_mem(m->data, m->size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue