omxvideoenc: Remove unnecessary gst_video_frame_unmap()

This commit is contained in:
Shinya Saito 2019-08-22 17:55:54 +09:00
parent a160160419
commit 8d4d697a58

View file

@ -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;