From 6e476ddd247d688edcb639a6ebc8c9c19430375e Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Mon, 7 Jul 2014 23:08:56 +0200 Subject: [PATCH] composition: Do not forget to set expandables state to NULL when disposing Co-Authored by: Thibault Saunier --- gnl/gnlcomposition.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnl/gnlcomposition.c b/gnl/gnlcomposition.c index 0a58517d60..32cb37f16e 100644 --- a/gnl/gnlcomposition.c +++ b/gnl/gnlcomposition.c @@ -2121,12 +2121,18 @@ static void _set_all_children_state (GnlComposition * comp, GstState state) { GList *tmp; - COMP_OBJECTS_LOCK (comp); + GST_DEBUG_OBJECT (comp, "Setting all children state to %s", + gst_element_state_get_name (state)); + + COMP_OBJECTS_LOCK (comp); gst_element_set_state (comp->priv->current_bin, state); for (tmp = comp->priv->objects_start; tmp; tmp = tmp->next) gst_element_set_state (tmp->data, state); + for (tmp = comp->priv->expandables; tmp; tmp = tmp->next) + gst_element_set_state (tmp->data, state); + COMP_OBJECTS_UNLOCK (comp); }