From 9f952567ae368884a0f1987e40dbc52fc5908de9 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 7 Jun 2012 12:16:21 +0100 Subject: [PATCH] diracenc: fix frame leaks --- ext/dirac/gstdiracenc.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/dirac/gstdiracenc.cc b/ext/dirac/gstdiracenc.cc index 46d2727674..ed29062375 100644 --- a/ext/dirac/gstdiracenc.cc +++ b/ext/dirac/gstdiracenc.cc @@ -928,6 +928,7 @@ gst_dirac_enc_handle_frame (GstVideoEncoder * base_video_encoder, } if (r != (int) GST_BUFFER_SIZE (frame->input_buffer)) { GST_ERROR ("failed to push picture"); + gst_video_codec_frame_unref (frame); return GST_FLOW_ERROR; } @@ -941,6 +942,7 @@ gst_dirac_enc_handle_frame (GstVideoEncoder * base_video_encoder, ret = gst_dirac_enc_process (dirac_enc, FALSE); + gst_video_codec_frame_unref (frame); return ret; }