mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 15:02:40 +00:00
rtsp-media: Improve skipping trickmode seek.
We can also skip the seek if the end range is already correct. Avoids initial seek on play start if playing full stream. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/194>
This commit is contained in:
parent
747eaf3634
commit
7cbc183044
1 changed files with 2 additions and 2 deletions
|
@ -2946,8 +2946,8 @@ gst_rtsp_media_seek_trickmode (GstRTSPMedia * media,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (start == current_position && stop_type == GST_SEEK_TYPE_NONE &&
|
if (!force_seek && start == current_position &&
|
||||||
!force_seek) {
|
(stop_type == GST_SEEK_TYPE_NONE || stop == priv->range_stop)) {
|
||||||
GST_DEBUG ("no position change, no flags set by caller, so not seeking");
|
GST_DEBUG ("no position change, no flags set by caller, so not seeking");
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue