From 80c5dacfb374bcef9b60b3fe48ac30e97fffc4d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 4 Jun 2019 17:55:30 +0300 Subject: [PATCH] concat: Reset last_stop on FLUSH_STOP too Otherwise when seeking backwards we would keep the last_stop at the last position we saw until playback passed the seek position again, and if switching to the next pad happens in the meantime we would set the wrong offset in the outgoing segment. --- plugins/elements/gstconcat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/elements/gstconcat.c b/plugins/elements/gstconcat.c index f449340..0495546 100644 --- a/plugins/elements/gstconcat.c +++ b/plugins/elements/gstconcat.c @@ -672,6 +672,7 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) GST_DEBUG_OBJECT (self, "resetting start offset to 0 after flushing with reset_time = TRUE"); self->current_start_offset = 0; + self->last_stop = GST_CLOCK_TIME_NONE; } ret = gst_pad_event_default (pad, parent, event); } else { -- 2.7.4