From 34577a965d4105fdd5a17be148441f8883534f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 19 May 2014 09:10:07 +0200 Subject: [PATCH] omxvideoenc: Don't forget to unref codec state CID 1214603 --- omx/gstomxvideoenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index f61c45bd61..ed7d08fc6d 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -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;