omxvideoenc: Unref frame of codec config buffer

After handling codec config, codec frame should be unreffed.
This commit is contained in:
Shinya Saito 2019-07-11 12:03:46 +09:00
parent 50d50f47fb
commit d8d23bbb3e

View file

@ -1333,6 +1333,7 @@ gst_omx_video_enc_handle_output_frame (GstOMXVideoEnc * self, GstOMXPort * port,
"Downstream element refused to negotiate codec_data in the caps");
return GST_FLOW_NOT_NEGOTIATED;
}
gst_video_codec_frame_unref (frame);
flow_ret = GST_FLOW_OK;
} else if (buf->omx_buf->nFilledLen > 0) {
GstBuffer *outbuf;