From 81bbdd9fcd8327abf33ba325ea617117d2be2d08 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Mon, 2 Oct 2017 09:40:50 +0200 Subject: [PATCH] audioaggregator: update comment for aggregate Replace collect-pads left-over. Remove first paragraph, we're not doing this. Remove 3), 4) since this is not per pad. --- gst-libs/gst/audio/gstaudioaggregator.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/gst-libs/gst/audio/gstaudioaggregator.c b/gst-libs/gst/audio/gstaudioaggregator.c index 20b486cd7a..b499d0ec1d 100644 --- a/gst-libs/gst/audio/gstaudioaggregator.c +++ b/gst-libs/gst/audio/gstaudioaggregator.c @@ -1086,12 +1086,8 @@ sync_pad_values (GstAudioAggregator * aagg, GstAudioAggregatorPad * pad) static GstFlowReturn gst_audio_aggregator_aggregate (GstAggregator * agg, gboolean timeout) { - /* Get all pads that have data for us and store them in a - * new list. - * - * Calculate the current output offset/timestamp and - * offset_end/timestamp_end. Allocate a silence buffer - * for this and store it. + /* Calculate the current output offset/timestamp and offset_end/timestamp_end. + * Allocate a silence buffer for this and store it. * * For all pads: * 1) Once per input buffer (cached) @@ -1108,11 +1104,11 @@ gst_audio_aggregator_aggregate (GstAggregator * agg, gboolean timeout) * buffer and advance the pad's position. Remember if this pad needs * a new buffer to advance behind the output offset_end. * - * 3) If we had no pad with a buffer, go EOS. + * If we had no pad with a buffer, go EOS. * - * 4) If we had at least one pad that did not advance behind output - * offset_end, let collected be called again for the current - * output offset/offset_end. + * If we had at least one pad that did not advance behind output + * offset_end, let aggregate be called again for the current + * output offset/offset_end. */ GstElement *element; GstAudioAggregator *aagg;