omxvideoenc: Remove unnecessary gst_video_frame_unmap()
authorShinya Saito <ssaito@igel.co.jp>
Thu, 22 Aug 2019 08:55:54 +0000 (17:55 +0900)
committerShinya Saito <ssaito@igel.co.jp>
Thu, 22 Aug 2019 09:01:56 +0000 (18:01 +0900)
omx/gstomxvideoenc.c

index 6a0c528..8a45177 100644 (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;