avenc: don't leak frames

This commit is contained in:
Wim Taymans 2012-06-26 12:36:56 +02:00
parent d96cffb10a
commit 932bd7f79e

View file

@ -710,6 +710,8 @@ gst_ffmpegvidenc_handle_frame (GstVideoEncoder * encoder,
(("Could not write to file \"%s\"."), ffmpegenc->filename),
GST_ERROR_SYSTEM);
gst_video_codec_frame_unref (frame);
/* Get oldest frame */
frame = gst_video_encoder_get_oldest_frame (encoder);