rtspsrc: Using multicast UDP has no relation to seekability
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 9 Apr 2021 20:25:28 +0000 (01:55 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 12 Apr 2021 02:56:44 +0000 (02:56 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/939>

gst/rtsp/gstrtspsrc.c

index 6a31741..e59e05e 100644 (file)
@@ -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 */