From 3ac5430311b20f30814cdabf5724fb687748bb5b Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 16 Jul 2018 23:43:29 +1000 Subject: [PATCH] splitmuxsrc: Make sure events are writable Before setting the seqnum on events sent downstream, make sure they are writable. --- gst/multifile/gstsplitmuxsrc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/multifile/gstsplitmuxsrc.c b/gst/multifile/gstsplitmuxsrc.c index 2434218cc3..0de0db66b5 100644 --- a/gst/multifile/gstsplitmuxsrc.c +++ b/gst/multifile/gstsplitmuxsrc.c @@ -480,8 +480,10 @@ gst_splitmux_handle_event (GstSplitMuxSrc * splitmux, gst_event_unref (event); event = gst_event_new_segment (&seg); - if (splitmux->segment_seqnum) + if (splitmux->segment_seqnum) { + event = gst_event_make_writable (event); gst_event_set_seqnum (event, splitmux->segment_seqnum); + } splitpad->sent_segment = TRUE; break; }