mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04: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
|
|
@ -29,6 +29,7 @@ typedef struct _PinosLinkClass PinosLinkClass;
|
|||
typedef struct _PinosLinkPrivate PinosLinkPrivate;
|
||||
|
||||
#include <pinos/server/daemon.h>
|
||||
#include <pinos/server/utils.h>
|
||||
#include <spa/include/spa/ringbuffer.h>
|
||||
|
||||
#define PINOS_TYPE_LINK (pinos_link_get_type ())
|
||||
|
|
@ -41,11 +42,12 @@ typedef struct _PinosLinkPrivate PinosLinkPrivate;
|
|||
#define PINOS_LINK_CLASS_CAST(klass)((PinosLinkClass*)(klass))
|
||||
|
||||
typedef struct {
|
||||
PinosNode *node;
|
||||
uint32_t port;
|
||||
gboolean allocated;
|
||||
SpaBuffer **buffers;
|
||||
guint n_buffers;
|
||||
PinosNode *node;
|
||||
uint32_t port;
|
||||
gboolean allocated;
|
||||
PinosMemblock buffer_mem;
|
||||
SpaBuffer **buffers;
|
||||
guint n_buffers;
|
||||
} PinosPort;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue