[Bug 790431] gstpad: Make calls to GstPadActivateFunction MT-safe
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Nov 16 09:55:41 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=790431
--- Comment #3 from Edward Hervey <bilboed at bilboed.com> ---
Created attachment 363816
--> https://bugzilla.gnome.org/attachment.cgi?id=363816&action=edit
gstpad: Make pad (de)activation atomic
The following could happen previously:
* T1: calls gst_pad_set_active()
* T2: currently (de)activating it
* T1: gst_pad_set_active() returns, caller assumes that the pad has
completed the requested (de)activation ... whereas it is not
the case since the actual (de)activation in T2 might still be
going on.
To ensure atomicity of pad (de)activation, we use a internal
variable (and cond) to ensure only one thread at a time goes through
the actual (de)activation block
--
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