From: Mathieu Duponchelle Date: Fri, 13 Apr 2018 21:01:20 +0000 (+0200) Subject: flvmux: unref return of aggregator_pad_peek_buffer X-Git-Tag: 1.16.2~584 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc9db36a1f124e4ceb1d6ee35245d9794f595f29;p=platform%2Fupstream%2Fgst-plugins-good.git flvmux: unref return of aggregator_pad_peek_buffer We ended up leaking every single buffer going through the muxer, which is far from ideal --- diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c index 2dc1817..6b248e4 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,