omxvideoenc: Don't forget to unref codec state

CID 1214603
This commit is contained in:
Sebastian Dröge 2014-05-19 09:10:07 +02:00
parent e542177c65
commit 34577a965d

View file

@ -568,6 +568,7 @@ gst_omx_video_enc_handle_output_frame (GstOMXVideoEnc * self, GstOMXPort * port,
gst_video_encoder_set_output_state (GST_VIDEO_ENCODER (self), caps,
self->input_state);
state->codec_data = codec_data;
gst_video_codec_state_unref (state);
if (!gst_video_encoder_negotiate (GST_VIDEO_ENCODER (self))) {
gst_video_codec_frame_unref (frame);
return GST_FLOW_NOT_NEGOTIATED;