How to add probe in the pad of custom plugin?

Nicolas Dufresne nicolas at ndufresne.ca
Fri Aug 27 13:14:25 UTC 2021


Le jeudi 26 août 2021 à 15:03 -0700, Dewei Wang via gstreamer-devel a écrit :
> Hi,
> 
> I am developing a custom plugin which might need to add a probe function to
> control the data flow. I know that I can write a GstPadProbeReturn type
> function and add it to the pad with gst_pad_add_probe() function in the
> application level script which builds the GST pipeline. May I ask if there is
> some way to apply these functions to the script for custom plugin instead,
> which allows me to insert the probe to the pad? If so, may I know if there is
> any example?

There is no difference using probe inside or outside an element / bin.  This is
used a lot inside GStreamer code base, first result from git grep in gst-
plugins-base:

https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/blob/master/gst/playback/gstdecodebin3.c#L904

> 
> Daniel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210827/091583ad/attachment.htm>


More information about the gstreamer-devel mailing list