From f192ba319268cae29ab144c40b4c1d849352ee40 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 4 Feb 2015 15:21:55 +0100 Subject: [PATCH] nlecomposition: Properly protect the children task --- ges/nle/nlecomposition.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ges/nle/nlecomposition.c b/ges/nle/nlecomposition.c index 19bf26c51b..2e0eef986e 100644 --- a/ges/nle/nlecomposition.c +++ b/ges/nle/nlecomposition.c @@ -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