From 31b5e86ebddddd308aa091b64bdd6552c9dd4873 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 26 Apr 2012 17:31:45 +0000 Subject: [PATCH] x264enc: don't leak output state --- ext/x264/gstx264enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 3859f455e7..5bcd79a64d 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1362,6 +1362,7 @@ gst_x264_enc_set_src_caps (GstX264Enc * encoder, GstCaps * caps) state = gst_video_encoder_set_output_state (GST_VIDEO_ENCODER (encoder), outcaps, encoder->input_state); GST_DEBUG ("here are the caps: %" GST_PTR_FORMAT, state->caps); + gst_video_codec_state_unref (state); return TRUE; }