streamsynchronizer: Use correct timestamp/duration for the GAP events
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 24 Oct 2012 11:29:45 +0000 (13:29 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 24 Oct 2012 11:29:45 +0000 (13:29 +0200)
gst/playback/gststreamsynchronizer.c

index 36e025e..b37382c 100644 (file)
@@ -584,7 +584,7 @@ gst_stream_synchronizer_sink_chain (GstPad * pad, GstObject * parent,
         ostream->segment.position = new_start;
 
         gst_pad_push_event (ostream->srcpad,
-            gst_event_new_gap (new_start, GST_SECOND));
+            gst_event_new_gap (position, new_start - position));
       }
     }
     GST_STREAM_SYNCHRONIZER_UNLOCK (self);