From fc9db36a1f124e4ceb1d6ee35245d9794f595f29 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 13 Apr 2018 23:01:20 +0200 Subject: [PATCH] flvmux: unref return of aggregator_pad_peek_buffer We ended up leaking every single buffer going through the muxer, which is far from ideal --- gst/flv/gstflvmux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c index 2dc18174a1..6b248e4338 100644 --- a/gst/flv/gstflvmux.c +++ b/gst/flv/gstflvmux.c @@ -1639,6 +1639,7 @@ gst_flv_mux_find_best_pad (GstAggregator * aggregator, GstClockTime * ts) best_ts = t; } } + gst_buffer_unref (buffer); } GST_DEBUG_OBJECT (aggregator, "Best pad found with %" GST_TIME_FORMAT ": %" GST_PTR_FORMAT,