composition: Do not forget to set expandables state to NULL when disposing
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Mon, 7 Jul 2014 21:08:56 +0000 (23:08 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 31 Oct 2014 10:58:09 +0000 (11:58 +0100)
Co-Authored by: Thibault Saunier <tsaunier@gnome.org>

gnl/gnlcomposition.c

index 0a58517..32cb37f 100644 (file)
@@ -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);
 }