mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
x264enc: unmap video frame after encoding
Fixes major memory leak. https://bugzilla.gnome.org/show_bug.cgi?id=669863
This commit is contained in:
parent
05a446b3c4
commit
0f9e7c3863
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue