From 637b0d8dc25b660d3b05370e60a95249a5228a39 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 20 Aug 2021 16:34:16 +0200 Subject: [PATCH] concat: Properly propagate seqnum of segment events Was broken by https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/819 Part-of: --- plugins/elements/gstconcat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/elements/gstconcat.c b/plugins/elements/gstconcat.c index b1156a5..35f68eb 100644 --- a/plugins/elements/gstconcat.c +++ b/plugins/elements/gstconcat.c @@ -541,6 +541,7 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) break; } case GST_EVENT_SEGMENT:{ + guint32 seqnum = gst_event_get_seqnum (event); /* Drop segment event, we create our own one */ gst_event_copy_segment (event, &spad->segment); gst_event_replace (&event, NULL); @@ -608,7 +609,7 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) } } event = gst_event_new_segment (&segment); - gst_event_set_seqnum (event, gst_event_get_seqnum (event)); + gst_event_set_seqnum (event, seqnum); g_mutex_unlock (&self->lock); } -- 2.7.4