composition: reset base time to 0 when needed.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Mon, 21 Jul 2014 14:57:14 +0000 (16:57 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 31 Oct 2014 10:58:11 +0000 (11:58 +0100)
gnl/gnlcomposition.c

index 37acc70..c2f9881 100644 (file)
@@ -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