diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2015-03-24 16:51:12 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2015-03-24 16:51:12 -0400 |
commit | 8afc8c8f3bec494ebfcf1f46b61df0ee6e9ed423 (patch) | |
tree | 5cef716168c420365ac8dec8ac0808899792077d | |
parent | ac0141b6a0dbb30372d11501b413a61b06da8d38 (diff) |
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.
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 2686bdf59..d5c902528 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -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; |