nlecomposition: Properly protect the children task
authorThibault Saunier <tsaunier@gnome.org>
Wed, 4 Feb 2015 14:21:55 +0000 (15:21 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 6 Feb 2015 09:06:05 +0000 (10:06 +0100)
ges/nle/nlecomposition.c

index 19bf26c..2e0eef9 100644 (file)
@@ -2131,7 +2131,10 @@ _restart_task (NleComposition * comp)
   comp->priv->waiting_for_buffer = FALSE;
 
   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