mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
basesrc: Return values in stream time for the POSITION query
Fixes bug #623622.
This commit is contained in:
parent
249c4c18d0
commit
55986b9a10
1 changed files with 4 additions and 1 deletions
|
@ -883,7 +883,9 @@ gst_base_src_default_query (GstBaseSrc * src, GstQuery * query)
|
|||
GstFormat seg_format;
|
||||
|
||||
GST_OBJECT_LOCK (src);
|
||||
position = src->segment.last_stop;
|
||||
position =
|
||||
gst_segment_to_stream_time (&src->segment, src->segment.format,
|
||||
src->segment.last_stop);
|
||||
seg_format = src->segment.format;
|
||||
GST_OBJECT_UNLOCK (src);
|
||||
|
||||
|
@ -990,6 +992,7 @@ gst_base_src_default_query (GstBaseSrc * src, GstQuery * query)
|
|||
if (stop != -1)
|
||||
stop -= src->segment.time;
|
||||
}
|
||||
|
||||
gst_query_set_segment (query, src->segment.rate, src->segment.format,
|
||||
start, stop);
|
||||
GST_OBJECT_UNLOCK (src);
|
||||
|
|
Loading…
Reference in a new issue