[gst-devel] Where is the data in the Pad
mail at renestadler.de
Thu Oct 4 17:50:36 CEST 2007
Am Donnerstag, den 04.10.2007, 18:37 +0530 schrieb karmendra jain:
> 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
I'm not sure that I understand what you want me to tell you. In
GStreamer, data flows around between elements by pushing (and pulling)
GstBuffer objects between pads. Pad probes allow you to get notified
exactly when this happens, letting you peek at the data.
You can also use an identity or fakesink element to get hold of the
buffers; these elements provide a "handoff" signal, which is a bit
easier to use since you don't need to mock around with pads.
> ****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 ???
For any details you might want, look at who calls the internal function
gst_pad_emit_have_data_signal in gst/gstpad.c:
More information about the gstreamer-devel