From: Sebastian Dröge Date: Fri, 11 Jan 2013 11:34:04 +0000 (+0100) Subject: omxvideoenc: Don't forget to unmap frame in error cases X-Git-Tag: 1.19.3~501^2~713 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcb181bd2dc9f00c8531b9ef6d2faacfabd0638e;p=platform%2Fupstream%2Fgstreamer.git omxvideoenc: Don't forget to unmap frame in error cases --- diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index 32af22c..5da285a 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -1162,6 +1162,7 @@ gst_omx_video_enc_fill_buffer (GstOMXVideoEnc * self, GstBuffer * inbuf, 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"); ret = FALSE; break; @@ -1219,6 +1220,7 @@ gst_omx_video_enc_fill_buffer (GstOMXVideoEnc * self, GstBuffer * inbuf, 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"); ret = FALSE; break;