Hi
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) Thx ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Mon, 2008-03-17 at 19:01 +0100, Julien Isorce wrote:
> Hi > > 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) Hi Julien, This is nothing to do with events at all, then. You should just set this property using g_object_set(), like you would for any other property. Doing this from a different thread should be fine. Some elements ignore changes to properties while they're running, though. I didn't check to see if textoverlay is one of them. Mike ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Julien Isorce
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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Julien Isorce
On Mon, 2008-03-17 at 19:01 +0100, Julien Isorce wrote:
> Hi > > I would like to know if gst_element_send_event is thread safe ? The -core implementations are threadsafe. If this is actually threadsafe for a particular element depends on the element. > > Actually I want to set the textoverlay's property "text" from an other > thread than the main thread. The text property does not seem to be threadsafe from looking at the code. It also probably does not do what you think it does. > 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) We don't have any text events, what would you use them for? Wim > > Thx > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |