[Bug 724481] bufferpool: Doesn't reset buffers when releasing them to the pool

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Feb 26 01:40:09 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=724481
  GStreamer | gstreamer (core) | git

--- Comment #10 from Wim Taymans <wim.taymans at gmail.com> 2014-02-26 10:01:32 UTC ---
(In reply to comment #9)
> If the memory is not writable, you don't have to free the buffer, just have to
> remove the memory from it, that saves having to de-allocate and re-allocate a
> GstBuffer.

But then you have a cost each time you acquire a buffer because you need to
check if there is memory on it and then make it if there isn't. If you optimize
for the common case, you would never place an 'incomplete' buffer in the
bufferpool queue.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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