From 3e3ac438a44529fc9c56d7a8eadb75368d3acd2c Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 14 Jul 2014 15:37:51 +0200 Subject: [PATCH] composition: Remove now useless flag "stackvalid". Co-Authored by: Mathieu Duponchelle --- gnl/gnlcomposition.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gnl/gnlcomposition.c b/gnl/gnlcomposition.c index 16c7c05..8a16a0d 100644 --- a/gnl/gnlcomposition.c +++ b/gnl/gnlcomposition.c @@ -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, ¤ttime, &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) { -- 2.7.4