From cdd3c303f14d3b5df55bea2bfcc45b81bc88adb1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 12 Oct 2011 17:17:09 +0200 Subject: [PATCH] basesrc: properly adjust start time When we do a non-flushing seek and closed the current segment, make sure that we open the next segment from where we closed. --- libs/gst/base/gstbasesrc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 5cd515e..1e23d5a 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -1453,6 +1453,7 @@ gst_base_src_perform_seek (GstBaseSrc * src, GstEvent * event, gboolean unlock) gst_event_new_new_segment_full (TRUE, src->segment.rate, src->segment.applied_rate, src->segment.format, src->segment.start, src->segment.last_stop, src->segment.time); + seeksegment.start = src->segment.last_stop; gst_event_set_seqnum (src->priv->close_segment, seqnum); } -- 2.7.4