GST_BUFFER_DATA in gstreamer1.0

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Aug 22 03:55:56 PDT 2013


On Thu, 2013-08-22 at 16:08 +0530, jyoti kulkarni wrote:

Hi,

> What is the replacement for GST_BUFFER_DATA in gstreamer1.0. I am
> using appsink in my application and i need to refer the buffer data
> pointer when ever a new buffer is arrived. 

GstMapInfo map;

if (gst_buffer_map (buffer, &map, GST_MAP_READ)) {
  gst_util_dump_mem (map.data, map.size);
  gst_buffer_unmap (buffer, &map);
}

Also see:
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/random/porting-to-1.0.txt#n235

Cheers
 -Tim




More information about the gstreamer-devel mailing list