Commit 2eccb60b authored by Julian Scheel's avatar Julian Scheel Committed by Jean-Baptiste Kempf
Browse files

mmal/vout: Use default allocator for mmal pool

The port agnostic allocator helpers in mmal leak memory (see

). As there is no benefit
using them instead of the default allocator in our case anyway, switch to the
default allocator, which avoids memory leakage on pool destruction.
Signed-off-by: Julian Scheel's avatarJulian Scheel <>
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent edbf2693
......@@ -456,10 +456,7 @@ static picture_pool_t *vd_pool(vout_display_t *vd, unsigned count)
sys->num_buffers = count;
sys->pool = mmal_pool_create_with_allocator(sys->num_buffers, sys->input->buffer_size,
sys->pool = mmal_pool_create(sys->num_buffers, sys->input->buffer_size);
if (!sys->pool) {
msg_Err(vd, "Failed to create MMAL pool for %u buffers of size %"PRIu32,
count, sys->input->buffer_size);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment