[gst-devel] Threadsafe ?

Jérôme Patey jerome.patey at open-plug.com
Tue Jun 7 03:26:19 CEST 2005


Hello !

    I wondered how much GStreamer was threadsafe...

    If I have 2 threads that need to link with a unique element (which 
has only one free pad), how is it handled ?

    If the first thread begins the negotiation, how to be sure that the 
second one will either be refused connection because the first one has 
succeeded, or be accepted because the first one has not compatibles 
capabilities ? Will there not be a problem of concurrent access ?

    Same thing with pad unlink...

    And with gst_bin_add, what happens if I call this method from 2 
different threads, on the same bin ? GList's aren't threadsafe...

    Thanks

-- 
Jerome Patey - jerome.patey at open-plug.com
Tools & Update

Open-Plug, Sophia-Antipolis, FRANCE
www.open-plug.com





More information about the gstreamer-devel mailing list