From e6efd288c278f0c0402b40117b44d02131475567 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 14 Nov 2022 19:14:27 +0200 Subject: [PATCH] rtspsrc: Make segment event writable before overriding the seqnum and use the proper API to do so Part-of: --- subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c index b3fd986..0dc9be0 100644 --- a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c +++ b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c @@ -3134,8 +3134,10 @@ gst_rtspsrc_update_src_event (GstRTSPSrc * self, GstRTSPStream * stream, break; } case GST_EVENT_SEGMENT: - if (self->seek_seqnum != GST_SEQNUM_INVALID) - GST_EVENT_SEQNUM (event) = self->seek_seqnum; + if (self->seek_seqnum != GST_SEQNUM_INVALID) { + event = gst_event_make_writable (event); + gst_event_set_seqnum (event, self->seek_seqnum); + } break; default: break; -- 2.7.4