summaryrefslogtreecommitdiff
path: root/omx/gstomxh265enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'omx/gstomxh265enc.c')
-rw-r--r--omx/gstomxh265enc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/omx/gstomxh265enc.c b/omx/gstomxh265enc.c
index aaddd5f..3fd8c0d 100644
--- a/omx/gstomxh265enc.c
+++ b/omx/gstomxh265enc.c
@@ -730,13 +730,10 @@ gst_omx_h265_enc_handle_output_frame (GstOMXVideoEnc * enc, GstOMXPort * port,
buf->omx_buf->nFilledLen);
gst_buffer_unmap (hdrs, &map);
self->headers = g_list_append (self->headers, gst_buffer_ref (hdrs));
-
frame->output_buffer = hdrs;
flow_ret =
gst_video_encoder_finish_subframe (GST_VIDEO_ENCODER (self), frame);
-
- if (frame)
- gst_video_codec_frame_unref (frame);
+ gst_video_codec_frame_unref (frame);
return flow_ret;
} else if (self->headers) {