x264enc: don't leak output state

This commit is contained in:
Nicolas Dufresne 2012-04-26 17:31:45 +00:00 committed by Sebastian Dröge
parent 565b21aefb
commit 31b5e86ebd

View file

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