mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
Plug some leaks
Add maxsize to bufferdata in case the memory size can be variable such as with encoded formats. Copy new size in the proxy.
This commit is contained in:
parent
9d4048e73a
commit
b208e8b690
15 changed files with 117 additions and 57 deletions
|
|
@ -132,7 +132,8 @@ typedef enum {
|
|||
* @type: memory type
|
||||
* @data: pointer to memory
|
||||
* @offset: offset in @data
|
||||
* @size: size of @data
|
||||
* @size: valid size of @data
|
||||
* @maxsize: size of @data
|
||||
* @stride: stride of data if applicable
|
||||
*/
|
||||
typedef struct {
|
||||
|
|
@ -140,6 +141,7 @@ typedef struct {
|
|||
void *data;
|
||||
off_t offset;
|
||||
size_t size;
|
||||
size_t maxsize;
|
||||
ssize_t stride;
|
||||
} SpaData;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue