composition: Remove now useless flag "stackvalid".
authorThibault Saunier <tsaunier@gnome.org>
Mon, 14 Jul 2014 13:37:51 +0000 (15:37 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 31 Oct 2014 10:58:10 +0000 (11:58 +0100)
Co-Authored by: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>

gnl/gnlcomposition.c

index 16c7c05..8a16a0d 100644 (file)
@@ -131,11 +131,6 @@ struct _GnlCompositionPrivate
   /* List of GnlObject whose start/duration will be the same as the composition */
   GList *expandables;
 
-  /* TRUE if the stack is valid.
-   * This is meant to prevent the top-level pad to be unblocked before the stack
-   * is fully done. Protected by OBJECTS_LOCK */
-  gboolean stackvalid;
-
   /*
      current segment seek start/stop time.
      Reconstruct pipeline ONLY if seeking outside of those values
@@ -1107,8 +1102,6 @@ gnl_composition_reset (GnlComposition * comp)
     g_node_destroy (priv->current);
   priv->current = NULL;
 
-  priv->stackvalid = FALSE;
-
   gnl_composition_reset_target_pad (comp);
 
   reset_children (comp);
@@ -2857,8 +2850,6 @@ _activate_new_stack (GnlComposition * comp)
     goto resync_state;
   }
 
-  priv->stackvalid = TRUE;
-
   /* The stack is entirely ready, send seek out synchronously */
   topelement = GST_ELEMENT (priv->current->data);
   /* Get toplevel object source pad */
@@ -2998,9 +2989,6 @@ update_pipeline (GnlComposition * comp, GstClockTime currenttime,
   stack = get_clean_toplevel_stack (comp, &currenttime, &new_start, &new_stop);
   samestack = are_same_stacks (priv->current, stack);
 
-  /* invalidate the stack while modifying it */
-  priv->stackvalid = FALSE;
-
   /* set new segment_start/stop (the current zone over which the new stack
    * is valid) */
   if (priv->segment->rate >= 0.0) {