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

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Dec 4 14:05:29 PST 2010


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

--- Comment #8 from David Schleef <ds at schleef.org> 2010-12-04 22:05:22 UTC ---
It's quite easy to have a pool of underlying memory, as opposed to a pool of
buffers.

Create a buffer:

  - select a free chunk from the pool, mark as non-free
  - create an appropriate buffer for that memory
  - set buffer->free and buffer->malloc_data

When the buffer is unreffed 1->0, buffer->free is called:

  - mark chunk as free

Also,

> And using subclassed GstBuffer prevents the use of gst_pad_alloc_buffer() call.

This is not correct, as xvimagesink subclasses GstBuffer and provides buffers
to peers.

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