adder: keep sending newsegments after seeking
authorStefan Kost <ensonic@users.sf.net>
Mon, 6 Jul 2009 21:31:12 +0000 (22:31 +0100)
committerStefan Kost <ensonic@users.sf.net>
Mon, 6 Jul 2009 21:35:14 +0000 (22:35 +0100)
Adder sends with timestamps from 0 upwards. After seeking we need to send
new-segments to get correct positions-queries.

gst/adder/gstadder.c

index 87e2d79..1392873 100644 (file)
@@ -692,9 +692,10 @@ gst_adder_src_event (GstPad * pad, GstEvent * event)
         adder->segment_position = cur;
       else
         adder->segment_position = 0;
-      /* we flushed out the downstream segment, make sure we push a new one */
+      /* make sure we push a new segment, to inform about new basetime
+       * see FIXME in gst_adder_collected() */
+      adder->segment_pending = TRUE;
       if (flush) {
-        adder->segment_pending = TRUE;
         /* Yes, we need to call _set_flushing again *WHEN* the streaming threads
          * have stopped so that the cookie gets properly updated. */
         gst_collect_pads_set_flushing (adder->collect, TRUE);