How to stop emission of a signal (or disconnect a handler)?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to stop emission of a signal (or disconnect a handler)?

machinegodzilla
Hi,

gst_pad_unlink() emits the "unlinked" signal on both pads. Is there any way to intercept that signal, or to stop its emission in the first place, or to block the handler for that signal?

Maybe it's a simple problem but I tried with several methods (e.g. g_signal_stop_emission_by_name() and others from Signals section of the GObject manual) with no success and now I run out of ideas. If the mentioned method should work then I would be very grateful for a short example. Some of the methods require handler_id - is there any way to get that id? I would normally get it from g_signal_connect() function but here I have no idea how to do it.

Thanks!