Re: Is Gstreamer thread safe

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Is Gstreamer thread safe

Edward Hervey
Administrator
On Thu, 2010-08-05 at 21:31 -0700, pavithra wrote:
> Can i call seek from one thread and delete the pipeline from another
> thread?

  Yes (assuming that by "delete" you mean "unref")

   Edward

>
> ______________________________________________________________________
> View this message in context: Is Gstreamer thread safe
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is Gstreamer thread safe

Tim-Philipp Müller-2
On Thu, 2010-08-05 at 21:31 -0700, pavithra wrote:

> Can i call seek from one thread and delete the pipeline from another
> thread?

Yes, as long as

 1) you gst_element_set_state (pipeline, GST_STATE_NULL)
    before deleting/unreffing the pipeline (this will also
    cancel/interrupt any pending seeks).

 2) your seek and _set_state() are done from threads that
    are not GStreamer streaming threads (ie. you can't do
    either of those things from a pad-added callback, a
    pad probe, a sync message handler, a notify::caps
    signal callback, etc.). You can do these things from
    any of your application threads though.

Cheers
 -Tim



------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel