[gst-devel] set_element_set_state & multi thread safe

Tim-Philipp Müller t.i.m at zen.co.uk
Tue Jan 5 15:30:37 CET 2010


On Tue, 2010-01-05 at 13:27 +0000, Tim-Philipp Müller wrote:

> You are not allowed to call _set_state() from a streaming thread, so
> you can't use it in a synchronous message callback.

Just to correct myself: this isn't entirely true, it's fine to call
_set_state() on a newly-added element in a pad-added callback for
example, but you shouldn't change pipeline state from a streaming
thread.

Without more information it's hard to guess what exactly you're doing
and what's going on. Do you have a short piece of code that reproduces
the problem?

Cheers
 -Tim







More information about the gstreamer-devel mailing list