[gstreamer-bugs] [Bug 619500] It is not possible to "recycle" buffers without subclassing GstBuffer object

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue May 25 05:00:48 PDT 2010


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

--- Comment #3 from Benjamin Otte (Company) <otte at gnome.org> 2010-05-25 12:00:43 UTC ---
(In reply to comment #0)
> there is a video source element which wants to use buffer pool to recycle same
> buffers over and over again (HW requires it) AND use gst_pad_alloc_buffer() to
> pre-allocate the buffers from downstream (video sink) element to enable
> optimized (zero-copy) video rendering. 
> 
While I'm not convinced that is a good idea, you could achieve this today by
just keeping a ref to the buffers you allocated using pad_alloc() in your pool
and then reusing them when GST_MINI_OBJECT_REFCOUNT_VALUE() returns 1.
That'd basically be the same thing as your approach, just without requiring new
API.

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