[gst-devel] gst_element_send_event - textoverlay
Tim Müller
t.i.m at zen.co.uk
Mon Mar 17 19:07:59 CET 2008
On Mon, 2008-03-17 at 19:01 +0100, Julien Isorce wrote:
> I would like to know if gst_element_send_event is thread safe ?
>
> Actually I want to set the textoverlay's property "text" from an other
> thread than the main thread.
> Is there an existing event which can do that ? If it doest not already
> exist, do you have an example that shows how to create an textEvent
> (then i call : gst_element_send_event( textoverlayElement, textEvent)
Events have nothing to do with it at all. You should be able to just do
g_object_set (textoverlay, "text", "new-text", NULL);
It's the element's responsibility to do proper locking internally (which
textoverlay does, I think).
Cheers
-Tim
More information about the gstreamer-devel
mailing list