diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-09-11 16:56:40 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-09-14 19:56:51 +0200 |
commit | 97fe89f3518596ea10a6cbe5b09848d0948683d0 (patch) | |
tree | 83b3ed554789283791a11715afc7ad8dc28cf1bb /gst/audiomixer | |
parent | eb97bb0adbd24f06c6bb32155b27bce995cd9a2d (diff) | |
download | gstreamer-plugins-bad-97fe89f3518596ea10a6cbe5b09848d0948683d0.tar.gz |
audioaggregator: Use stream time in the position query instead of segment position
https://bugzilla.gnome.org/show_bug.cgi?id=753196
Diffstat (limited to 'gst/audiomixer')
-rw-r--r-- | gst/audiomixer/gstaudioaggregator.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/audiomixer/gstaudioaggregator.c b/gst/audiomixer/gstaudioaggregator.c index ca06a6606..3b59a4295 100644 --- a/gst/audiomixer/gstaudioaggregator.c +++ b/gst/audiomixer/gstaudioaggregator.c @@ -578,8 +578,9 @@ gst_audio_aggregator_src_query (GstAggregator * agg, GstQuery * query) switch (format) { case GST_FORMAT_TIME: - /* FIXME, bring to stream time, might be tricky */ - gst_query_set_position (query, format, agg->segment.position); + gst_query_set_position (query, format, + gst_segment_to_stream_time (&agg->segment, GST_FORMAT_TIME, + agg->segment.position)); res = TRUE; break; case GST_FORMAT_BYTES: |