composition: Relink nodes *after* setting the seqnum

Co-Authored by: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
This commit is contained in:
Thibault Saunier 2014-07-08 22:58:02 +02:00
parent 25a2c2387e
commit eeb475db5b

View file

@ -2696,12 +2696,11 @@ _relink_new_stack (GnlComposition * comp, GNode * stack,
{
GnlCompositionPrivate *priv = comp->priv;
GST_ERROR ("RElinking new stack");
_relink_single_node (comp, stack, toplevel_seek);
GST_ERROR ("Reseting seqnum to %i", gst_event_get_seqnum (toplevel_seek));
GNL_OBJECT (comp)->wanted_seqnum = gst_event_get_seqnum (toplevel_seek);
_relink_single_node (comp, stack, toplevel_seek);
gst_event_unref (toplevel_seek);
gst_element_set_locked_state (priv->current_bin, FALSE);