How could I push ONE GstBuffer to TWO GstAdapters?

Sebastian Dröge sebastian at centricular.com
Wed May 18 14:41:54 UTC 2016


On Mi, 2016-05-18 at 03:01 -0700, Majaja wrote:
> [...]
> I believe that it is NOT the best way & would like find a better
> method instead.

gst_adapter_push(adapter1, gst_buffer_ref(buffer));
gst_adapter_push(adapter2, buffer);

There is no need for duplicating the buffer.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160518/ddd55b19/attachment.sig>


More information about the gstreamer-devel mailing list