robert.b.scott at sbcglobal.net
Thu Jun 29 17:43:42 CEST 2006
I am using 0.10. I believe that I may have actually uncovered the
real issue indirectly by switching to g_object. It appears that the
gst_element_query_position and gst_element_query_duration do not
handle the case when the playbin is not either in the PLAYING or
PAUSED state. Whenever I call this functions from another state,
than it appears to render the playbin unusable.
I started noticing this behavior as I was piecing my program back
together and reintegrating all of the functionality in the new
model. When I reinserted the queries for position, things stopped
working. When I added checks to see what state the playbin was in,
everything started working again.
Does that make any sense?
> Hi Robert,
> On Sat, 2006-06-24 at 16:10 -0700, Robert Scott wrote:
>> I guess that calling gst_element_set_state is
>> not thread safe.
> Not sure what you're up to, but that function is definitely threadsafe
> in 0.10.
>> What I had to do was create a new gnome object
>> which wraps all control of gstreamer playbin.
> Unnecessary. You probably are not using playbin correctly. There
> be no need to know about threads when using playbin.
> Andy Wingo
More information about the gstreamer-devel