summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2021-04-10 02:53:51 +0530
committerTim-Philipp Müller <tim@centricular.com>2021-09-07 00:29:49 +0100
commit0f611744a9f5c89de38130e2712b159e1041036f (patch)
treedec99ddbd5effa68271914d7ea5acf14cbf2983c
parentb1b109b5ce2d0737479e69d3c6057c334bf6dbc9 (diff)
downloadgstreamer-plugins-good-0f611744a9f5c89de38130e2712b159e1041036f.tar.gz
rtspsrc: Do not overwrite the known duration after a seek
This breaks the duration query and also the seeking query. Broke in 5f1a732bc7b76a6f1b8aa5f26b6e76fbca0261c7 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1076>
-rw-r--r--gst/rtsp/gstrtspsrc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 5c798ec5e..5d70e09fb 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -2852,7 +2852,6 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
/* configure the seek parameters in the seeksegment. We will then have the
* right values in the segment to perform the seek */
GST_DEBUG_OBJECT (src, "configuring seek");
- seeksegment.duration = GST_CLOCK_TIME_NONE;
rate_change_same_direction = (rate * seeksegment.rate) > 0;
gst_segment_do_seek (&seeksegment, rate, format, flags,
cur_type, cur, stop_type, stop, &update);