[Bug 769894] validate: Race when checking whether some actions have completed

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Aug 16 18:57:06 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=769894

--- Comment #5 from Thibault Saunier <tsaunier at gnome.org> ---
(In reply to Sebastian Dröge (slomo) from comment #3)
> If you wait for *both* that should do the job here. Note however that you
> can't assume to get the same number of async-done as seeks and state changes
> you submitted. If there are multiple happening at the same time, you will
> only receive a single async-done.
> This could be problematic with things automatically changing states, or the
> handling of the BUFFERING messages.

I am trying to think about issues it can cause issues but in GstValidate
everything is currently very sequential and I can not think of a scenario
failling with that approach. Basically in the patch I proposed I am just making
sure that when set_state returns ASYNC, we always wait for 1- the new state to
be reached 2- an ASYNC_DONE message on the bus (is there a particular order for
those events to happen?). I can't reproduce that bug with it.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list