x264enc: unmap video frame after encoding

Fixes major memory leak.

https://bugzilla.gnome.org/show_bug.cgi?id=669863
This commit is contained in:
Matej Knopp 2012-02-11 05:38:41 -05:00 committed by Tim-Philipp Müller
parent 05a446b3c4
commit 0f9e7c3863

View file

@ -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;