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

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Feb 22 06:50:19 PST 2011


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

--- Comment #11 from Wim Taymans <wim.taymans at gmail.com> 2011-02-22 14:50:12 UTC ---
(In reply to comment #10)

<snip>

> Yes, I know. But if the one who gave me the buffer (e.g. xvimagesink) pools
> those buffers, then this freefunction isn't called, since the buffer isn't
> physically freed (buffer is just put back to pool).
> 
> So, ultimately what I'd like to achieve:
> 
> 1) My (source) element wants to pre-allocate a pool of buffers from downstream
> 2) The element wants to know when the pushed buffer has been rendered, so that
> it can revive it back to the pool

what is the point of (2)? when the buffer is rendered it will go back to the
owner of the pool (xvimagesink) why would a downstream element be interested in
when that happens?

> 
> To solve (1), the element must use gst_pad_alloc_buffer().
> To solve (2), the element must get a signal that buffer has been freed (by the
> sink). But this is currently impossible.

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