From 847360368a7a61a20ed0255be21fc8478185fa9c Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Mon, 21 Jul 2014 16:57:14 +0200 Subject: [PATCH] composition: reset base time to 0 when needed. --- gnl/gnlcomposition.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnl/gnlcomposition.c b/gnl/gnlcomposition.c index 37acc707d0..c2f9881b15 100644 --- a/gnl/gnlcomposition.c +++ b/gnl/gnlcomposition.c @@ -496,6 +496,7 @@ _initialize_stack_func (GnlComposition * comp) { GnlCompositionPrivate *priv = comp->priv; + comp->priv->next_base_time = 0; /* set ghostpad target */ if (!(update_pipeline (comp, COMP_REAL_START (comp), COMP_UPDATE_STACK_INITIALIZE))) { @@ -1992,6 +1993,7 @@ _commit_func (GnlComposition * comp) GstClockTime curpos; GnlCompositionPrivate *priv = comp->priv; + priv->next_base_time = 0; GST_INFO_OBJECT (comp, "Commiting state"); /* Get current so that it represent the duration it was