[Bug 747959] buffer: minimize memory copy in _memory_add()

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Apr 17 01:49:44 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=747959

Tim-Philipp Müller <t.i.m at zen.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #301775|none                        |needs-work
             status|                            |

--- Comment #4 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Comment on attachment 301775
  --> https://bugzilla.gnome.org/attachment.cgi?id=301775
buffer: Dynamic memory allocation for GstMemory* array

>+  buffer->mem = g_slice_alloc (sizeof (GstMemory *) * GST_BUFFER_MEM_MAX);
>+  buffer->max_len = GST_BUFFER_MEM_MAX;

I think we still want the static array, so that we can avoid the extra alloc in
the normal case. Have a look at GstBufferList.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list