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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/939>
This commit is contained in:
Nirbheek Chauhan 2021-04-10 01:55:28 +05:30 committed by GStreamer Marge Bot
parent b1dcbf393b
commit 57e4eab72d

View 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 */