From 57e4eab72d00677eb60c7bda1feeef833e043038 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 10 Apr 2021 01:55:28 +0530 Subject: [PATCH] rtspsrc: Using multicast UDP has no relation to seekability The transport has no relation to whether a media can be seeked. The range response having a duration is the correct thing to check for. Part-of: --- gst/rtsp/gstrtspsrc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 6a31741c15..e59e05e40a 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -3168,8 +3168,7 @@ gst_rtspsrc_handle_src_query (GstPad * pad, GstObject * parent, gst_query_parse_seeking (query, &format, NULL, NULL, NULL); if (format == GST_FORMAT_TIME) { - gboolean seekable = - src->cur_protocols != GST_RTSP_LOWER_TRANS_UDP_MCAST; + gboolean seekable = TRUE; GstClockTime start = 0, duration = src->segment.duration; /* seeking without duration is unlikely */