From fb97ca94587f6396e7d2a3c54b7967ee5e641ce4 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 10 Apr 2021 02:53:51 +0530 Subject: [PATCH] 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: --- gst/rtsp/gstrtspsrc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 9f5c3f7..8f65d56 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -2857,7 +2857,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); -- 2.7.4