Get data from GstBuffer struct

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Jun 29 06:08:54 PDT 2012


On Fri, 2012-06-29 at 03:35 -0700, Aaron wrote:

Hi Aaron,

>     I want to get video data from the GstBuffer struct and i look at  the
> GstBuffer Reference ,but do not  find  which function can do this. So what
> should i do to get only video data from the GstBuffer struct? Thank you very
> much!

In 0.10:

  [const] guint8 *data = GST_BUFFER_DATA(buffer)
  guint size = GST_BUFFER_SIZE(buffer)

Cheers
 -Tim




More information about the gstreamer-devel mailing list