composition: Set the seqnum only when receiving the actual seek event
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Thu, 10 Jul 2014 13:46:19 +0000 (15:46 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 31 Oct 2014 10:58:09 +0000 (11:58 +0100)
Setting it before calling seek_handling is racy!

Co-Authored by: Thibault Saunier <tsaunier@gnome.org>

gnl/gnlcomposition.c

index b501228..6e51f49 100644 (file)
@@ -469,10 +469,9 @@ _seek_pipeline_func (SeekData * seekd)
   GST_FIXME_OBJECT (seekd->comp,
       "BE smarter and do not force pipeline update on"
       " seek (though it just does basic comparision and not full rebuild)");
-  seek_handling (seekd->comp, TRUE, TRUE);
 
   priv->reset_time = TRUE;
-  GNL_OBJECT (seekd->comp)->wanted_seqnum = gst_event_get_seqnum (seekd->event);
+  seek_handling (seekd->comp, FALSE, TRUE);
   priv->reset_time = FALSE;
 
 beach: