From 926fed92e992dbf5c8ed57cae45221d6eef04adf Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Thu, 5 Oct 2017 08:12:45 +0200 Subject: [PATCH] audioaggregator: rename _fill_buffer() to _queue_new_buffer() It does not fill a buffer. Rename it and add a short comment. --- gst-libs/gst/audio/gstaudioaggregator.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/audio/gstaudioaggregator.c b/gst-libs/gst/audio/gstaudioaggregator.c index 7d91f48368..202474b845 100644 --- a/gst-libs/gst/audio/gstaudioaggregator.c +++ b/gst-libs/gst/audio/gstaudioaggregator.c @@ -763,9 +763,12 @@ gst_audio_aggregator_do_clip (GstAggregator * agg, /* Called with the object lock for both the element and pad held, * as well as the aagg lock + * + * Replace the current buffer with input and update GstAudioAggregatorPadPrivate + * values. */ static gboolean -gst_audio_aggregator_fill_buffer (GstAudioAggregator * aagg, +gst_audio_aggregator_queue_new_buffer (GstAudioAggregator * aagg, GstAudioAggregatorPad * pad, GstBuffer * inbuf) { GstClockTime start_time, end_time; @@ -1241,7 +1244,7 @@ gst_audio_aggregator_aggregate (GstAggregator * agg, gboolean timeout) /* New buffer? */ if (!pad->priv->buffer) { /* Takes ownership of buffer */ - if (!gst_audio_aggregator_fill_buffer (aagg, pad, inbuf)) { + if (!gst_audio_aggregator_queue_new_buffer (aagg, pad, inbuf)) { dropped = TRUE; GST_OBJECT_UNLOCK (pad); gst_aggregator_pad_drop_buffer (aggpad);