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:
Wim Taymans 2016-09-30 19:56:41 +02:00
parent 9d4048e73a
commit b208e8b690
15 changed files with 117 additions and 57 deletions

View file

@ -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;