composition: Make basic seeking working
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 8 Jul 2014 11:28:57 +0000 (13:28 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 31 Oct 2014 10:58:09 +0000 (11:58 +0100)
Co-Authored by: Thibault Saunier <tsaunier@gnome.org>

gnl/gnlcomposition.c

index d5b2b61..03be69b 100644 (file)
@@ -464,15 +464,14 @@ _seek_pipeline_func (SeekData * seekd)
 
   priv->next_base_time = 0;
 
-  seek_handling (seekd->comp, TRUE, FALSE);
+  GST_FIXME_OBJECT (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);
-  priv->gnl_event_pad_func (GNL_OBJECT (seekd->comp)->srcpad,
-      GST_OBJECT (seekd->comp), get_new_seek_event (seekd->comp, FALSE, FALSE));
   priv->reset_time = FALSE;
 
-
 beach:
   gst_event_unref (seekd->event);
   g_slice_free (SeekData, seekd);
@@ -2103,8 +2102,7 @@ _process_pending_entries (GnlComposition * comp)
 static gboolean
 _emit_commited_signal_func (GnlComposition * comp)
 {
-  GST_INFO_OBJECT (comp, "Emiting COMMITED now that the stack "
-      "is ready");
+  GST_INFO_OBJECT (comp, "Emiting COMMITED now that the stack " "is ready");
 
   g_signal_emit (comp, _signals[COMMITED_SIGNAL], 0, TRUE);