splitmuxsrc: Make sure events are writable

Before setting the seqnum on events sent downstream,
make sure they are writable.
This commit is contained in:
Jan Schmidt 2018-07-16 23:43:29 +10:00
parent 9e79821b1d
commit 3ac5430311

View file

@ -480,8 +480,10 @@ gst_splitmux_handle_event (GstSplitMuxSrc * splitmux,
gst_event_unref (event); gst_event_unref (event);
event = gst_event_new_segment (&seg); 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); gst_event_set_seqnum (event, splitmux->segment_seqnum);
}
splitpad->sent_segment = TRUE; splitpad->sent_segment = TRUE;
break; break;
} }