summaryrefslogtreecommitdiff
path: root/omx/gstomxh264enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'omx/gstomxh264enc.c')
-rw-r--r--omx/gstomxh264enc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/omx/gstomxh264enc.c b/omx/gstomxh264enc.c
index 94963e1..51d84a8 100644
--- a/omx/gstomxh264enc.c
+++ b/omx/gstomxh264enc.c
@@ -879,9 +879,7 @@ gst_omx_h264_enc_handle_output_frame (GstOMXVideoEnc * enc, GstOMXPort * port,
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) {