Still capture implementation in source plugin

Nicolas Dufresne nicolas at ndufresne.ca
Tue Apr 25 14:41:34 UTC 2017


Le lundi 17 avril 2017 à 19:36 -0700, caoxi a écrit :
> Thanks, can you help to explain how to trigger the action you
> mentioned to do
> snapshot? by calling Gstreamer APIs

The action signal works like GObject signal, but instead of the object
emiting to the outisde, it's outside that emits the signal to the
object. You can find multiple examples of that kind of signal in
GStreamer code base, here's just one:

https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst-libs/gs
t/insertbin/gstinsertbin.c#n145

Calling an API could look like:

  g_signal_emit_by_name (G_OBJECT (self), "trigger-capture", NULL);

regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170425/54bb0c7a/attachment.sig>


More information about the gstreamer-devel mailing list