From a4674a1e17f7fd135f3ec08123a33e82ba1fd1eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 14 Nov 2022 19:03:21 +0200 Subject: [PATCH] rtspsrc: Don't make udpsrc segment events writable just to retrieve their seqnum Part-of: --- subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c index 65f767dfba..7c5fc149d6 100644 --- a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c +++ b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c @@ -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; }