element: document that gst_element_continue_state needs to be called with the STATE_LOCK
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 26 Jul 2017 08:15:58 +0000 (11:15 +0300)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 26 Jul 2017 09:36:20 +0000 (12:36 +0300)
It internally calls gst_element_change_state(), which requires the STATE_LOCK

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

gst/gstelement.c

index 231fd83..28ff49d 100644 (file)
@@ -2402,6 +2402,8 @@ _priv_gst_element_state_changed (GstElement * element, GstState oldstate,
  * This method is used internally and should normally not be called by plugins
  * or applications.
  *
+ * This function must be called with STATE_LOCK held.
+ *
  * Returns: The result of the commit state change.
  *
  * MT safe.