[gst-devel] Question on how to use GstBuffer?

Chen, Weian weian.chen at intel.com
Fri Jan 8 03:56:39 CET 2010


Hi All,

In my current element, I will create and new a GstBuffer (which means to use g_malloc to allocate buffer) in the _chain() function for each frame.

My question is: Can I allocate several buffers (ring buffers) ahead of time, then I can re-use them and don't need to allocate buffer for each call of _chain, if yes, how?

Thanks in advanced.

Weian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100108/af1ad7dd/attachment.htm>


More information about the gstreamer-devel mailing list