concat: Properly propagate seqnum of segment events

Was broken by https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/819

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/871>
This commit is contained in:
Edward Hervey 2021-08-20 16:34:16 +02:00 committed by Edward Hervey
parent adc565ff4a
commit 637b0d8dc2

View file

@ -541,6 +541,7 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
break; break;
} }
case GST_EVENT_SEGMENT:{ case GST_EVENT_SEGMENT:{
guint32 seqnum = gst_event_get_seqnum (event);
/* Drop segment event, we create our own one */ /* Drop segment event, we create our own one */
gst_event_copy_segment (event, &spad->segment); gst_event_copy_segment (event, &spad->segment);
gst_event_replace (&event, NULL); 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); 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); g_mutex_unlock (&self->lock);
} }