mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 14:38:48 +00:00
rtspsrc: Remove some dead code
stop is not used after this point, nor do we create a new segment
here since 84725d62b5
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/940>
This commit is contained in:
parent
fb97ca9458
commit
c071cbbe30
1 changed files with 0 additions and 9 deletions
|
@ -2861,11 +2861,6 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
|
||||||
gst_segment_do_seek (&seeksegment, rate, format, flags,
|
gst_segment_do_seek (&seeksegment, rate, format, flags,
|
||||||
cur_type, cur, stop_type, stop, &update);
|
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 */
|
/* if we were playing, pause first */
|
||||||
playing = (src->state == GST_RTSP_STATE_PLAYING);
|
playing = (src->state == GST_RTSP_STATE_PLAYING);
|
||||||
if (playing) {
|
if (playing) {
|
||||||
|
@ -2897,10 +2892,6 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
|
||||||
src->segment.format, src->segment.position));
|
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 */
|
/* mark discont when needed */
|
||||||
if (!(rate_change_only && rate_change_same_direction)) {
|
if (!(rate_change_only && rate_change_same_direction)) {
|
||||||
GST_DEBUG_OBJECT (src, "mark DISCONT, we did a seek to another position");
|
GST_DEBUG_OBJECT (src, "mark DISCONT, we did a seek to another position");
|
||||||
|
|
Loading…
Reference in a new issue