mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 09:12:19 +00:00
rtspsrc: Fix seeking query
The segment start/stop in the query is meant to represent the seekable portion of the stream. It does not match the segment start/stop. Instead export 0 to duration.
This commit is contained in:
parent
ac0141b6a0
commit
8afc8c8f3b
1 changed files with 2 additions and 3 deletions
|
@ -2716,9 +2716,8 @@ gst_rtspsrc_handle_src_query (GstPad * pad, GstObject * parent,
|
|||
seekable = seekable && src->seekable && src->segment.duration &&
|
||||
GST_CLOCK_TIME_IS_VALID (src->segment.duration);
|
||||
|
||||
/* FIXME ?? should we have 0 and segment.duration here; see demuxers */
|
||||
gst_query_set_seeking (query, GST_FORMAT_TIME, seekable,
|
||||
src->segment.start, src->segment.stop);
|
||||
gst_query_set_seeking (query, GST_FORMAT_TIME, seekable, 0,
|
||||
src->segment.duration);
|
||||
res = TRUE;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue