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

karmendra jain karmendra.jain at gmail.com
Thu Oct 4 15:07:43 CEST 2007


Thanks a lot
Its working .. i read that line but didn't understand wat to do ..

If possible(whenever u got time ..) .. Can u explain how its happning
****what i have done now is ****
gst_pad_add_buffer_probe(mypad,G_CALLBACK(mycallback), mypad)

and static gboolean mycallback(GstPad *pad, GstMiniObject *obj,
gpointer user_data)

**so my doubt it *** ---->how the GstMiniObject is gettin filled ???
ie who passes the address to obj and how ???



On 10/4/07, René Stadler <mail at renestadler.de> wrote:
>
> 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
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>




More information about the gstreamer-devel mailing list