From 584c4c628228684c3ea83fc9a69b61fc18a25986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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 476fc0f2f4..0671edef38 100644 --- a/plugins/elements/gstconcat.c +++ b/plugins/elements/gstconcat.c @@ -655,6 +655,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 {