How to add GstMeta to buffers in a pool?
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: This is a digitally signed message part
More information about the gstreamer-devel