mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
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:
parent
b181686211
commit
a4674a1e17
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue