schroenc: Don't leak all input buffers

This commit is contained in:
Sebastian Dröge 2014-06-29 23:31:50 +02:00
parent 225f03f80e
commit b4ef216f0b

View file

@ -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);