mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-22 06:59:59 -05:00
Improve memory handling
Reserve 0,0 for stack allocated mem that we never free Improve allocation in the link Parse format and properties in-line, there is no need to allocate memory. Improve buffer cleanup in alsa Add timestamps and offset to alsa
This commit is contained in:
parent
77f93e37ed
commit
27acab7532
7 changed files with 155 additions and 69 deletions
|
|
@ -403,6 +403,10 @@ on_add_buffer (GObject *gobject,
|
|||
GstMemory *gmem;
|
||||
|
||||
mem = spa_memory_find (&d->mem.mem);
|
||||
if (mem == NULL) {
|
||||
g_warning ("failed to get buffer memory");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (mem->fd) {
|
||||
gmem = gst_fd_allocator_alloc (pinossrc->fd_allocator, dup (mem->fd),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue