mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
audioaggregator: Use stream time in the position query instead of segment position
https://bugzilla.gnome.org/show_bug.cgi?id=753196
This commit is contained in:
parent
1a4f037bc1
commit
c91e32bbf7
1 changed files with 3 additions and 2 deletions
|
@ -578,8 +578,9 @@ gst_audio_aggregator_src_query (GstAggregator * agg, GstQuery * query)
|
||||||
|
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case GST_FORMAT_TIME:
|
case GST_FORMAT_TIME:
|
||||||
/* FIXME, bring to stream time, might be tricky */
|
gst_query_set_position (query, format,
|
||||||
gst_query_set_position (query, format, agg->segment.position);
|
gst_segment_to_stream_time (&agg->segment, GST_FORMAT_TIME,
|
||||||
|
agg->segment.position));
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
break;
|
break;
|
||||||
case GST_FORMAT_BYTES:
|
case GST_FORMAT_BYTES:
|
||||||
|
|
Loading…
Reference in a new issue