summaryrefslogtreecommitdiff
path: root/omx
diff options
context:
space:
mode:
authorShinya Saito <ssaito@igel.co.jp>2019-07-11 12:03:46 +0900
committerShinya Saito <ssaito@igel.co.jp>2019-07-11 19:02:20 +0900
commitd8d23bbb3eaa14244e6395deed80de3ac838441e (patch)
tree891be9b574ec1b564949a3e60b1949af724f9892 /omx
parent50d50f47fbb849a3ee7caf69c89218ccff140a04 (diff)
omxvideoenc: Unref frame of codec config buffer
After handling codec config, codec frame should be unreffed.
Diffstat (limited to 'omx')
-rw-r--r--omx/gstomxvideoenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c
index 7e1e754..6a0c528 100644
--- a/omx/gstomxvideoenc.c
+++ b/omx/gstomxvideoenc.c
@@ -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;