Avoiding potential deadlock when we remove tracks on a playing pipeline
static gboolean
_load_project (GstValidateScenario * scenario, GstValidateAction * action)
{
+ GstState state;
GESProject *project;
GList *tmp, *tmp_full;
goto fail;
}
+ gst_element_get_state (pipeline, &state, NULL, 0);
+ gst_element_set_state (pipeline, GST_STATE_NULL);
content = gst_structure_get_string (action->structure, "serialized-content");
if (content) {
goto fail;
}
+ gst_element_set_state (pipeline, state);
+
done:
if (error)
g_error_free (error);