mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -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
|
|
@ -195,7 +195,7 @@ struct pw_link {
|
|||
struct spa_hook_list listener_list;
|
||||
|
||||
void *buffer_owner;
|
||||
struct pw_memblock buffer_mem;
|
||||
struct pw_memblock *buffer_mem;
|
||||
struct spa_buffer **buffers;
|
||||
uint32_t n_buffers;
|
||||
|
||||
|
|
@ -273,7 +273,7 @@ struct pw_port {
|
|||
struct spa_io_buffers io; /**< io area of the port */
|
||||
|
||||
bool allocated; /**< if buffers are allocated */
|
||||
struct pw_memblock buffer_mem; /**< allocated buffer memory */
|
||||
struct pw_memblock *buffer_mem; /**< allocated buffer memory */
|
||||
struct spa_buffer **buffers; /**< port buffers */
|
||||
uint32_t n_buffers; /**< number of port buffers */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue