[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:11:31 PDT 2010


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

--- Comment #4 from Tommi Myöhänen <tommi.myohanen at digia.com> 2010-05-25 12:11:26 UTC ---
(In reply to comment #3)

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

But then there should be an active loop which polls the refcounts. The problem
is that when source element has pushed all its buffers out it can't do anything
until a free buffer is available. So it needs to wait for the buffer to get
released. If we had a weak ref notification callback, I wouldn't need to write
a busy loop for it.

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