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
@ -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…
x
Reference in New Issue
Block a user