[gst-devel] Question on gst_bus_add/remove_signal_watch functions

José Alburquerque jaalburquerque at cox.net
Thu Dec 6 19:44:30 CET 2007


Hello everyone.  I'm involved in gstreamermm with other developers in 
order to provide C++ bindings for gstreamer.  We're moving along quite 
nicely so far, but some of us will most likely ask a few questions here 
every so often (I hope this is fine :-)).  One such question is related 
to the gst_bus_add/remove_signal_watch[_full] functions (which I'm 
presently working on right now).  As I understand the docs, 
gst_add_signal_watch[_full] can be called several times, but 
remove_signal_watch must be called the same number of times to remove 
the watches.

My question is:  does the message signal get transmitted as many times 
as gst_bus_add_signal_watch() has been called or just once regardless?  
If so, why allow several calls to gst_bus_add_signal_watch().  Also, am 
I correct in assuming that the GstBus is not destroyed unless 
gst_bus_remove_signal_watch() is called the same number of times that 
gst_bus_add_signal_watch[_full]() has been called?

I appreciate answers as this is relevant to the C++ "wrapping" process 
that we are using for the C++ bindings.  Thanks.

Sincerely
Jose




More information about the gstreamer-devel mailing list