[gst-devel] Where is the data in the Pad

René Stadler mail at renestadler.de
Thu Oct 4 14:44:13 CEST 2007


Am Donnerstag, den 04.10.2007, 18:06 +0530 schrieb karmendra jain:
> Thanks Rene
> i was aware of this .. but how to get the buffer ?? i mean
> i can get the address of the pad (gst_element_get_pad)
> and set the callback for buffer(gst_pad_add_buffer_probe).. but how to
> get the buffer ??
> GST_BUFFER_DATA(buffer) needs buffer to be defined ie .. the address
> of buffer needs to be known . .how will i do that .. i am confused
> If u dont mind ..can u please explain it a little more
> 
> Thanks

<snip>

The docs say somewhere that the probe callback has the same signature as
a handler for the have-data signal of GstPad, so the function you pass
to add_buffer_probe looks like:

static gboolean
my_probe (GstPad *pad, GstMiniObject *obj, gpointer user_data)
{
   GstBuffer *buffer = GST_BUFFER (obj);
...

-- 
Regards,
  René Stadler






More information about the gstreamer-devel mailing list