From d202097dd6a34657b288a4b4bea9e11499ebee56 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 12 Apr 2018 22:24:26 +0200 Subject: [PATCH] audioaggregator: unref converted buffer after gst_buffer_replace --- gst-libs/gst/audio/gstaudioaggregator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/audio/gstaudioaggregator.c b/gst-libs/gst/audio/gstaudioaggregator.c index 088a91ca97..7d5707f05d 100644 --- a/gst-libs/gst/audio/gstaudioaggregator.c +++ b/gst-libs/gst/audio/gstaudioaggregator.c @@ -839,6 +839,7 @@ gst_audio_aggregator_update_converters (GstAudioAggregator * aagg, gst_audio_aggregator_convert_buffer (aagg, GST_PAD (aaggpad), &aaggpad->info, new_info, aaggpad->priv->input_buffer); gst_buffer_replace (&aaggpad->priv->buffer, new_converted_buffer); + gst_buffer_unref (new_converted_buffer); } } }