AW: Gst.PadProbeCallback?

Thornton, Keith keith.thornton at zeiss.com
Fri Jun 14 07:36:43 UTC 2019


As far as I can see the C interface
typedef GstPadProbeReturn   (*GstPadProbeCallback)   (GstPad *pad, GstPadProbeInfo *info,
                                                      gpointer user_data);
only has three parameters.
And
gulong                  gst_pad_add_probe                       (GstPad *pad,
								 GstPadProbeType mask,
								 GstPadProbeCallback callback,
                                                                 gpointer user_data,
                                                                 GDestroyNotify destroy_data);
Has five. 
I think if the documentation claims differently then the documentation is wrong

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> Im Auftrag von Antonio Ospite
Gesendet: Freitag, 14. Juni 2019 08:55
An: gstreamer-devel at lists.freedesktop.org
Cc: pisymbol . <pisymbol at gmail.com>
Betreff: Re: Gst.PadProbeCallback?

On Thu, 13 Jun 2019 18:10:17 -0400
"pisymbol ." <pisymbol at gmail.com> wrote:

> I am adding a probe to my src to do per frame timetamping/gps tagging.
> Adding the pad is easy, but what are the arguments to this callback?
> 
> Line of code:
> 
> self.nvcam0_pad.add_probe(Gst.PadProbeType.BUFFER, self.on_probe, 
> None,
> None)
> 
> Doc (to show I care!):
> 
> https://gstreamer.freedesktop.org/documentation/gstreamer/gstpad.html?
> gi-language=python#GstPadProbeCallback
> 
> ...says there are three. But the interpreter claims there are five? 
> What are the five and does the doc need updating?
>

How do you define self.on_probe()?

Ciao,
   Antonio

--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list