From eefea80daeff310192098e12092df34fcf8c5b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 23 Dec 2014 12:15:50 +0100 Subject: [PATCH] audiomixer: Make sure to release the current buffer in reset() If we didn't output the last one in aggregate because we were shutting down earlier we might otherwise leak it. --- gst/audiomixer/gstaudiomixer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/audiomixer/gstaudiomixer.c b/gst/audiomixer/gstaudiomixer.c index 0ce25135ee..a12a3f1b31 100644 --- a/gst/audiomixer/gstaudiomixer.c +++ b/gst/audiomixer/gstaudiomixer.c @@ -709,6 +709,7 @@ gst_audiomixer_reset (GstAudioMixer * audiomixer) { audiomixer->offset = 0; gst_caps_replace (&audiomixer->current_caps, NULL); + gst_buffer_replace (&audiomixer->current_buffer, NULL); } static gboolean