projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f0eb92
)
compositor: Fix memory leak when no buffer is available for a pad currently
author
Sebastian Dröge
<sebastian@centricular.com>
Thu, 18 Dec 2014 10:48:37 +0000
(11:48 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 18 Dec 2014 10:49:09 +0000
(11:49 +0100)
CID 1258718
gst/compositor/compositor.c
patch
|
blob
|
history
diff --git
a/gst/compositor/compositor.c
b/gst/compositor/compositor.c
index
c5d0901
..
06d96bf
100644
(file)
--- a/
gst/compositor/compositor.c
+++ b/
gst/compositor/compositor.c
@@
-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");