flvmux: unref return of aggregator_pad_peek_buffer

We ended up leaking every single buffer going through the
muxer, which is far from ideal
This commit is contained in:
Mathieu Duponchelle 2018-04-13 23:01:20 +02:00
parent ee99cd7037
commit fc9db36a1f

View File

@ -1639,6 +1639,7 @@ gst_flv_mux_find_best_pad (GstAggregator * aggregator, GstClockTime * ts)
best_ts = t; best_ts = t;
} }
} }
gst_buffer_unref (buffer);
} }
GST_DEBUG_OBJECT (aggregator, GST_DEBUG_OBJECT (aggregator,
"Best pad found with %" GST_TIME_FORMAT ": %" GST_PTR_FORMAT, "Best pad found with %" GST_TIME_FORMAT ": %" GST_PTR_FORMAT,