x264enc: gst_video_encoder_get_frame() is now transfer full

This commit is contained in:
Nicolas Dufresne 2012-04-30 18:59:44 +00:00 committed by Sebastian Dröge
parent 31b5e86ebd
commit 6e920bc4aa

View file

@ -1716,8 +1716,10 @@ gst_x264_enc_encode_frame (GstX264Enc * encoder, x264_picture_t * pic_in,
} }
out: out:
if (frame) if (frame) {
gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (encoder), frame); gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (encoder), frame);
gst_video_codec_frame_unref (frame);
}
return ret; return ret;
} }