static GPrivate main_thread_priv;
+/* GstValidateScenario is not really thread safe and
+ * everything should be done from the thread GstValidate
+ * was inited from, unless stated otherwize.
+ */
struct _GstValidateScenarioPrivate
{
GstValidateRunner *runner;
GMutex lock;
GList *actions;
- GList *interlaced_actions;
- GList *on_addition_actions;
+ GList *interlaced_actions; /* MT safe. Protected with SCENARIO_LOCK */
+ GList *on_addition_actions; /* MT safe. Protected with SCENARIO_LOCK */
/* List of action that need parsing when reaching ASYNC_DONE
* most probably to be able to query duration */
gboolean handles_state;
- guint get_pos_id; /* Protect with SCENARIO_LOCK */
+ guint get_pos_id; /* MT safe. Protect with SCENARIO_LOCK */
guint wait_id;
gboolean buffering;