summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2021-04-10 01:55:28 +0530
committerTim-Philipp Müller <tim@centricular.com>2021-04-13 16:30:25 +0100
commit907e48ce0611c3f6e2f2f92ddac18112ff9c6610 (patch)
treee3ef65aade456ef83f5fa3fa391d910ec8def8c3
parenta818a5adcd8d2f1619cfaf244c4b34e29a29f2e9 (diff)
downloadgstreamer-plugins-good-907e48ce0611c3f6e2f2f92ddac18112ff9c6610.tar.gz
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/947>
-rw-r--r--gst/rtsp/gstrtspsrc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 5d744c6b4..716fec630 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -3163,8 +3163,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 */