gst_buffer_resize_range bug ?

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Mar 16 03:04:27 PDT 2015



Le 03/16/2015 09:04 AM, Gregor Boirie a écrit :
> I'm trying to use gst_buffer_resize_range to reuse space located ahead of a
> GstBuffer, i.e. with a negative offset passed as 4th argument (and negative
> size as required).

I doubt offset can be negative. If you want to add a header, create a
GstMemory (you can uses the default allocator), and do
gst_buffer_prepend_memory(). Make sure the buffer is writable of course.

Nicolas


More information about the gstreamer-devel mailing list