composition: Actiually set current_bin state even when not debugging

Co-Authored by: Thibault Saunier <tsaunier@gnome.org>
This commit is contained in:
Mathieu Duponchelle 2014-07-04 11:11:53 +02:00 committed by Thibault Saunier
parent 5df6986a81
commit 2e01715209

View file

@ -2523,10 +2523,7 @@ compare_relink_stack (GnlComposition * comp, GNode * stack, gboolean modify)
GList *deactivate = NULL; GList *deactivate = NULL;
gst_element_set_locked_state (comp->priv->current_bin, TRUE); gst_element_set_locked_state (comp->priv->current_bin, TRUE);
gst_element_set_state (comp->priv->current_bin, GST_STATE_READY);
GST_ERROR ("Set state return: %s",
gst_element_state_change_return_get_name
(gst_element_set_state (comp->priv->current_bin, GST_STATE_READY)));
ptarget = ptarget =
gst_ghost_pad_get_target (GST_GHOST_PAD (GNL_OBJECT (comp)->srcpad)); gst_ghost_pad_get_target (GST_GHOST_PAD (GNL_OBJECT (comp)->srcpad));