summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-06-29 23:31:50 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-06-29 23:31:50 +0200
commitb4ef216f0bdfdc3e31fab19855d51aa4d98622ba (patch)
tree283a5fc4a065c347eb7fab1980518494b4d83f77 /ext
parent225f03f80ed57072cac287509642ca4281f6cef7 (diff)
downloadgstreamer-plugins-bad-b4ef216f0bdfdc3e31fab19855d51aa4d98622ba.tar.gz
schroenc: Don't leak all input buffers
Diffstat (limited to 'ext')
-rw-r--r--ext/schroedinger/gstschroenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/schroedinger/gstschroenc.c b/ext/schroedinger/gstschroenc.c
index cb755c234..0dc2fde06 100644
--- a/ext/schroedinger/gstschroenc.c
+++ b/ext/schroedinger/gstschroenc.c
@@ -648,8 +648,7 @@ gst_schro_enc_handle_frame (GstVideoEncoder * base_video_encoder,
}
/* FIXME : We could make that method just take GstVideoInfo ... */
- schro_frame = gst_schro_buffer_wrap (gst_buffer_ref (frame->input_buffer),
- FALSE, info);
+ schro_frame = gst_schro_buffer_wrap (frame->input_buffer, FALSE, info);
GST_DEBUG ("pushing frame %p", frame);
schro_encoder_push_frame_full (schro_enc->encoder, schro_frame, frame);