projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa3e64c
)
compositor: Don't leak all buffers while crossfading and not all pads are crossfading
author
Sebastian Dröge
<sebastian@centricular.com>
Wed, 25 Jul 2018 21:20:02 +0000
(
00:20
+0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 25 Jul 2018 21:20:02 +0000
(
00:20
+0300)
gst/compositor/compositor.c
patch
|
blob
|
history
diff --git
a/gst/compositor/compositor.c
b/gst/compositor/compositor.c
index 105fc405718ed6a61b4ebb627effa7d7cc1748b3..ec62de51bacc714d469a75401ac0354522c09b84 100644
(file)
--- a/
gst/compositor/compositor.c
+++ b/
gst/compositor/compositor.c
@@
-833,8
+833,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;
}