Commit 8c48ccab authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

compositor: Don't leak all buffers while crossfading and not all pads are crossfading

parent 9cc6c338
......@@ -1005,8 +1005,13 @@ gst_compositor_fill_transparent (GstCompositor * self, GstVideoFrame * frame,
if (!gst_video_frame_map (nframe, &frame->info, cbuffer, GST_MAP_WRITE)) {
GST_WARNING_OBJECT (self, "Could not map output buffer");
gst_buffer_unref (cbuffer);
return GST_FLOW_ERROR;
}
/* the last reference is owned by the frame and released once the frame
* is unmapped. We leak it if we don't unref here */
gst_buffer_unref (cbuffer);
} else {
nframe = frame;
}
......
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