Commit a64445e5 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

compositor: Fix memory leak when no buffer is available for a pad currently

CID 1258718
parent 6f0eb92d
......@@ -276,13 +276,15 @@ gst_compositor_pad_prepare_frame (GstVideoAggregatorPad * pad,
guint outsize;
GstVideoFrame *converted_frame;
GstBuffer *converted_buf = NULL;
GstVideoFrame *frame = g_slice_new0 (GstVideoFrame);
GstVideoFrame *frame;
static GstAllocationParams params = { 0, 15, 0, 0, };
gint width, height;
if (!pad->buffer)
return TRUE;
frame = g_slice_new0 (GstVideoFrame);
if (!gst_video_frame_map (frame, &pad->buffer_vinfo, pad->buffer,
GST_MAP_READ)) {
GST_WARNING_OBJECT (vagg, "Could not map input buffer");
......
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