diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2021-04-13 09:23:12 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2021-09-07 00:29:49 +0100 |
commit | d83ead3c9855a5403adacfc0eb5f53a0df121961 (patch) | |
tree | 5cf820d3cda73e150fdad8a2302aa9f8065c669b | |
parent | 0f611744a9f5c89de38130e2712b159e1041036f (diff) |
rtspsrc: Remove some dead code
stop is not used after this point, nor do we create a new segment
here since 84725d62b57bc74ce34abde755f35bf8f948f94d
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1076>
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 5d70e09fb..2180d175e 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -2856,11 +2856,6 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event) gst_segment_do_seek (&seeksegment, rate, format, flags, cur_type, cur, stop_type, stop, &update); - /* figure out the last position we need to play. If it's configured (stop != - * -1), use that, else we play until the total duration of the file */ - if ((stop = seeksegment.stop) == -1) - stop = seeksegment.duration; - /* if we were playing, pause first */ playing = (src->state == GST_RTSP_STATE_PLAYING); if (playing) { @@ -2897,10 +2892,6 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event) src->segment.format, src->segment.position)); } - /* now create the newsegment */ - GST_DEBUG_OBJECT (src, "Creating newsegment from %" G_GINT64_FORMAT - " to %" G_GINT64_FORMAT, src->segment.position, stop); - /* mark discont when needed */ if (!(rate_change_only && rate_change_same_direction)) { GST_DEBUG_OBJECT (src, "mark DISCONT, we did a seek to another position"); |