nlecomposition: Properly protect the children task

This commit is contained in:
Thibault Saunier 2015-02-04 15:21:55 +01:00
parent 1bfe0b7ef3
commit f192ba3192

View file

@ -2131,7 +2131,10 @@ _restart_task (NleComposition * comp)
comp->priv->waiting_for_buffer = FALSE; comp->priv->waiting_for_buffer = FALSE;
comp->priv->updating_reason = COMP_UPDATE_STACK_NONE; comp->priv->updating_reason = COMP_UPDATE_STACK_NONE;
gst_task_start (comp->task); GST_OBJECT_LOCK (comp);
if (comp->task)
gst_task_start (comp->task);
GST_OBJECT_UNLOCK (comp);
} }
static gboolean static gboolean