How to add GstMeta to buffers in a pool?

Nicolas Dufresne nicolas.dufresne at collabora.com
Thu Jun 11 07:38:19 PDT 2015


Le jeudi 11 juin 2015 à 14:12 +0000, Spruyt, Randy a écrit :
> Thanks Mohammed, adding the GST_META_FLAG_POOLED helps. However, if 
> we append memory to Gst Buffers after they are allocated we see the 
> same thing, the meta data disappears. Perhaps I am approaching this 
> wrong and need to do the wrapping during the buffer allocation by 
> overloading GstBufferPoolClass->alloc instead?

If you do that, the GST_BUFFER_FLAG_TAG_MEMORY will be set. That means
the buffer will then be discarded instead of being put back in the
pool. At this point, you are better sub-classing GstBufferPool to
create a custom pool.

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150611/9f8228a0/attachment.sig>


More information about the gstreamer-devel mailing list