From 4c3092e07a4e03171649069f1a5f2bed5991d461 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Wed, 26 Jul 2017 11:15:58 +0300 Subject: [PATCH] element: document that gst_element_continue_state needs to be called with the STATE_LOCK It internally calls gst_element_change_state(), which requires the STATE_LOCK https://bugzilla.gnome.org/show_bug.cgi?id=785431 --- gst/gstelement.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/gstelement.c b/gst/gstelement.c index 231fd83..28ff49d 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -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. -- 2.7.4