<html><head></head><body><div>Le jeudi 26 août 2021 à 15:03 -0700, Dewei Wang via gstreamer-devel a écrit :</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div>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 <code>GstPadProbeReturn</code> type function and add it to the pad with <code>gst_pad_add_probe()</code> 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?</div></blockquote><div><br></div><div>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:</div><div><br></div><div><a href="https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/blob/master/gst/playback/gstdecodebin3.c#L904">https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/blob/master/gst/playback/gstdecodebin3.c#L904</a></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Daniel</div></div></blockquote><div><br></div><div><span></span></div></body></html>