mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
rtsp-media: Add one more case to seek avoidance
This is an extension to the previous commit. There can also be cases where the start position is not specified, in those cases we should also avoid doing seeking unless it's forced. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/197>
This commit is contained in:
parent
7cbc183044
commit
338db31c4a
1 changed files with 2 additions and 1 deletions
|
@ -2946,7 +2946,8 @@ gst_rtsp_media_seek_trickmode (GstRTSPMedia * media,
|
|||
}
|
||||
}
|
||||
|
||||
if (!force_seek && start == current_position &&
|
||||
if (!force_seek &&
|
||||
(start_type == GST_SEEK_TYPE_NONE || start == current_position) &&
|
||||
(stop_type == GST_SEEK_TYPE_NONE || stop == priv->range_stop)) {
|
||||
GST_DEBUG ("no position change, no flags set by caller, so not seeking");
|
||||
res = TRUE;
|
||||
|
|
Loading…
Reference in a new issue