x264enc: gst_video_encoder_get_frame() is now transfer full
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 30 Apr 2012 18:59:44 +0000 (18:59 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 18 Jun 2012 15:01:20 +0000 (16:01 +0100)
ext/x264/gstx264enc.c

index 5bcd79a64d82338848867935e69bcb178612c390..e6b968df9a9a790882eb4fcb4a42e486d4c237cd 100644 (file)
@@ -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;
 }