mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
splitmuxsrc: Make sure events are writable
Before setting the seqnum on events sent downstream, make sure they are writable.
This commit is contained in:
parent
9e79821b1d
commit
3ac5430311
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue