summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-06-07 12:16:21 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-06-07 12:43:57 +0100
commit9f952567ae368884a0f1987e40dbc52fc5908de9 (patch)
tree868b05051d2a43223c5edd551d52392c147483b2
parent5f8e9cefa25799cc12f5d534b18e7113893ffd6d (diff)
downloadgstreamer-plugins-bad-9f952567ae368884a0f1987e40dbc52fc5908de9.tar.gz
diracenc: fix frame leaks
-rw-r--r--ext/dirac/gstdiracenc.cc2
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;
}