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:
Nicolas Dufresne 2015-03-24 16:51:12 -04:00
parent ac0141b6a0
commit 8afc8c8f3b

View file

@ -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;