rtspsrc: Don't make udpsrc segment events writable just to retrieve their seqnum

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3409>
This commit is contained in:
Sebastian Dröge 2022-11-14 19:03:21 +02:00 committed by GStreamer Marge Bot
parent b181686211
commit a4674a1e17

View file

@ -3450,10 +3450,8 @@ udpsrc_probe_cb (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
switch (GST_EVENT_TYPE (info->data)) {
case GST_EVENT_SEGMENT:
if (!gst_event_is_writable (info->data))
info->data = gst_event_make_writable (info->data);
*segment_seqnum = gst_event_get_seqnum (info->data);
break;
default:
break;
}