summaryrefslogtreecommitdiff
path: root/gst/playback/gststreamsynchronizer.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-24 13:25:19 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-24 13:25:19 +0200
commit52d48109bc4bb3fa62d7dbe41a749fab427ad1cf (patch)
tree8047b9f81f99a3376a5174dacb526db214520127 /gst/playback/gststreamsynchronizer.c
parentd2d79e3bc2a02ec57258e504b031f7e2d3729ea2 (diff)
streamsynchronizer: Send GAP events to advance streams
Diffstat (limited to 'gst/playback/gststreamsynchronizer.c')
-rw-r--r--gst/playback/gststreamsynchronizer.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/gst/playback/gststreamsynchronizer.c b/gst/playback/gststreamsynchronizer.c
index 3692f6d78..36e025e07 100644
--- a/gst/playback/gststreamsynchronizer.c
+++ b/gst/playback/gststreamsynchronizer.c
@@ -572,26 +572,19 @@ gst_stream_synchronizer_sink_chain (GstPad * pad, GstObject * parent,
/* Is there a 1 second lag? */
if (position != -1 && position + GST_SECOND < timestamp_end) {
- gint64 new_start, new_stop;
+ gint64 new_start;
new_start = timestamp_end - GST_SECOND;
- if (ostream->segment.stop == -1)
- new_stop = -1;
- else
- new_stop = MAX (new_start, ostream->segment.stop);
GST_DEBUG_OBJECT (ostream->sinkpad,
"Advancing stream %u from %" GST_TIME_FORMAT " to %"
GST_TIME_FORMAT, ostream->stream_number, GST_TIME_ARGS (position),
GST_TIME_ARGS (new_start));
- ostream->segment.start = new_start;
- ostream->segment.stop = new_stop;
- ostream->segment.time = new_start;
ostream->segment.position = new_start;
gst_pad_push_event (ostream->srcpad,
- gst_event_new_segment (&ostream->segment));
+ gst_event_new_gap (new_start, GST_SECOND));
}
}
GST_STREAM_SYNCHRONIZER_UNLOCK (self);