Element set_property MT safety

Roland Elek elek.roland at gmail.com
Mon Aug 29 14:27:52 PDT 2011


Hi,

Is there a well known solution to make the set_property function of a 
1-to-1 filter element MT safe? By MT safe, I mean set_property itself, 
and mutual exclusion with the chain function.

Is it a good idea to lock the set_property function and the chain 
function with the same (new) GMutex?
Also, the chain function is already protected in gst_pad_push () by the 
PAD_STREAM_LOCK of its pad. Where in general should the PAD_STREAM_LOCK 
be held? If the element is 1-to-1, taking it in the set_property 
function does seem to solve the problem with MT safety, but is it a good 
thing to do?

Thank you in advance.

Regards,
Roland Elek


More information about the gstreamer-devel mailing list