From 6e920bc4aac7d488ebabaf3809425323bca4518b Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Mon, 30 Apr 2012 18:59:44 +0000 Subject: [PATCH] x264enc: gst_video_encoder_get_frame() is now transfer full --- ext/x264/gstx264enc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 5bcd79a64d..e6b968df9a 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1716,8 +1716,10 @@ gst_x264_enc_encode_frame (GstX264Enc * encoder, x264_picture_t * pic_in, } out: - if (frame) + if (frame) { gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (encoder), frame); + gst_video_codec_frame_unref (frame); + } return ret; }