audioaggregator: Fix mixup of running times and segment positions
authorSebastian Dröge <sebastian@centricular.com>
Fri, 11 Sep 2015 19:37:08 +0000 (21:37 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 14 Sep 2015 17:57:00 +0000 (19:57 +0200)
commit637106e2873c3ee32eb168dde464dac9971c942b
tree5957ccfba6601c7d5da2a0524fa705c4ec7b57d8
parent97fe89f3518596ea10a6cbe5b09848d0948683d0
audioaggregator: Fix mixup of running times and segment positions

We have to queue buffers based on their running time, not based on
the segment position.

Also return running time from GstAggregator::get_next_time() instead of
a segment position, as required by the API.

Also only update the segment position after we pushed a buffer, otherwise
we're going to push down a segment event with the next position already.

https://bugzilla.gnome.org/show_bug.cgi?id=753196
gst/audiomixer/gstaudioaggregator.c