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:
Wim Taymans 2017-11-28 18:23:44 +01:00
parent 75cdd20207
commit 140c3959ab
10 changed files with 161 additions and 132 deletions

View file

@ -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 */