link: don't allocate shared meta in shared mem

We can't allocate the shared meta in shared mem because then clients can
damage it for other clients. Place it instead right after the buffer
metadata array. Filter out the shared metadata for a client, we send it
as part of the client_buffer structure.
Remove pointer metadata, it's not so useful.
Document the layout of the allocated buffers and the shared memory.
Work on metadata to define control parameters
This commit is contained in:
Wim Taymans 2017-11-17 13:34:42 +01:00
parent e774339ffe
commit 4d0bab799c
5 changed files with 158 additions and 69 deletions

View file

@ -405,8 +405,8 @@ struct spa_node {
* Tell the port to allocate memory for \a buffers.
*
* \a buffers should contain an array of pointers to buffers. The data
* in the buffers should point to an array of at least 1 SPA_DATA_TYPE_INVALID
* data pointers that will be filled by this function.
* in the buffers should point to an array of at least 1 data entry
* with a 0 type that will be filled by this function.
*
* For input ports, the buffers will be dequeued and ready to be filled
* and pushed into the port. A notify should be configured so that you can