opposite action to g_signal_connect ??
Sebastian Dröge
sebastian at centricular.com
Sun Dec 1 23:57:58 PST 2013
On So, 2013-12-01 at 23:43 -0800, pavel wrote:
> Hello,
>
> I need to replace the appsrc component pushing data downstream. It has "need
> data" signal connected.
> So, before I remove the appsrc, I need to remove that "need data" handler.
>
> How can I do that?
By using g_signal_handler_disconnect() for example:
https://developer.gnome.org/gobject/unstable/gobject-Signals.html#g-signal-handler-disconnect
g_signal_connect() and related functions are returning the signal
handler it as a gulong, which you then can pass to
g_signal_handler_disconnect() and other functions working on signal
handlers.
Alternatively you can use g_signal_handlers_disconnect_by_func(), which
doesn't require you to store the signal handler it... but this is
slower.
--
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131202/3923f7e7/attachment.pgp>
More information about the gstreamer-devel
mailing list