diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-06-07 12:16:21 +0100 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-06-07 12:43:57 +0100 |
commit | 9f952567ae368884a0f1987e40dbc52fc5908de9 (patch) | |
tree | 868b05051d2a43223c5edd551d52392c147483b2 | |
parent | 5f8e9cefa25799cc12f5d534b18e7113893ffd6d (diff) | |
download | gstreamer-plugins-bad-9f952567ae368884a0f1987e40dbc52fc5908de9.tar.gz |
diracenc: fix frame leaks
-rw-r--r-- | ext/dirac/gstdiracenc.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dirac/gstdiracenc.cc b/ext/dirac/gstdiracenc.cc index 46d272767..ed2906237 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; } |