diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index 6a0c528558..8a451772ef 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -2465,7 +2465,6 @@ gst_omx_video_enc_semi_planar_manual_copy (GstOMXVideoEnc * self, if (dest + dest_stride * height > outbuf->omx_buf->pBuffer + outbuf->omx_buf->nAllocLen) { - gst_video_frame_unmap (&frame); GST_ERROR_OBJECT (self, "Invalid output buffer size"); gst_video_frame_unmap (&frame); return FALSE;