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:
05a446b
)
x264enc: unmap video frame after encoding
author
Matej Knopp
<matej.knopp@gmail.com>
Sat, 11 Feb 2012 10:38:41 +0000
(
05:38
-0500)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Sat, 11 Feb 2012 13:33:24 +0000
(13:33 +0000)
Fixes major memory leak.
https://bugzilla.gnome.org/show_bug.cgi?id=669863
ext/x264/gstx264enc.c
patch
|
blob
|
history
diff --git
a/ext/x264/gstx264enc.c
b/ext/x264/gstx264enc.c
index e84fe58a4172895ed4ea38beb12d471813641a95..5e0b73c15ffdc0bf397a79f85251d8e0f6174e40 100644
(file)
--- a/
ext/x264/gstx264enc.c
+++ b/
ext/x264/gstx264enc.c
@@
-1914,6
+1914,8
@@
gst_x264_enc_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
ret = gst_x264_enc_encode_frame (encoder, &pic_in, &i_nal, TRUE);
+ gst_video_frame_unmap (&frame);
+
/* input buffer is released later on */
return ret;