[gst-devel] Using g_singal_emit() in GStreamer

Sebastian Dröge sebastian.droege at collabora.co.uk
Thu Dec 17 22:07:40 CET 2009


Am Donnerstag, den 17.12.2009, 14:40 -0500 schrieb José Alburquerque:
> On Tue, 2009-12-15 at 17:54 +0100, Sebastian Dröge wrote:
> > Yes, signals with G_SIGNAL_ACTION are meant to be emitted from
> outside
> > the element and are handled inside the element. Signals without that
> > flag should be connected to by the outside and are emitted from
> inside
> > the element. That's the same as for the few action signals in GTK :)
> > 
> > For gstreamermm you probably want to provide convenience methods for
> > these action signals. The C# bindings have this
> 
> Thanks for your reply, it's really appreciated.  Some plug-ins have
> "action signals" with no return.  For example, fakesrc's "handoff"
> signal (which looks to be registered with the G_SIGNAL_ACTION flag)
> returns void.  Others don't have parameters either like queue's
> "underrun" signal.
> 
> Sorry if it's a simple question, but what would be the purpose of
> emitting these signals from the outside as opposed to within the
> plug-ins?  Thanks for any answers.

Think of the action signals like normal methods that you can call
on the instance. OTOH normal signals are "events", things connected
to it will be called when something specific happens.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20091217/0a023383/attachment.pgp>


More information about the gstreamer-devel mailing list