From ddbbe5d277f2ec0475de9bd6962d5a983eb64b23 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 22 May 2019 21:40:52 +0200 Subject: [PATCH] splitmuxsink: set the same seqnum on flush_start / flush_stop It's currently not made mandatory by aggregator, but it might eventually be, and is more consistent behaviour See https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/977 --- gst/multifile/gstsplitmuxsink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c index d859eaeb11..ab9fa00ebd 100644 --- a/gst/multifile/gstsplitmuxsink.c +++ b/gst/multifile/gstsplitmuxsink.c @@ -1703,14 +1703,17 @@ start_next_fragment (GstSplitMuxSink * splitmux, MqStreamCtx * ctx) } else { GstIterator *it = gst_element_iterate_sink_pads (muxer); GstEvent *ev; + guint32 seqnum; ev = gst_event_new_flush_start (); + seqnum = gst_event_get_seqnum (ev); while (gst_iterator_foreach (it, _send_event, ev) == GST_ITERATOR_RESYNC); gst_event_unref (ev); gst_iterator_resync (it); ev = gst_event_new_flush_stop (TRUE); + gst_event_set_seqnum (ev, seqnum); while (gst_iterator_foreach (it, _send_event, ev) == GST_ITERATOR_RESYNC); gst_event_unref (ev);