Adding new(std::nothrow) changes
authorrahul varna <rahul.varna@samsung.com>
Fri, 5 Apr 2013 04:29:36 +0000 (13:29 +0900)
committerrahul varna <rahul.varna@samsung.com>
Fri, 5 Apr 2013 04:29:36 +0000 (13:29 +0900)
Change-Id: I4081f923333ec7314e50875a0104688f89e2fa38
Signed-off-by: rahul varna <rahul.varna@samsung.com>
src/FMedia_VideoFrameImpl.cpp

index ade40c1..dee8a1d 100755 (executable)
@@ -84,7 +84,7 @@ _VideoFrameImpl::Initialize(MediaPixelFormat format, int width, int height, int
        int tableSize = sizeof(bytesCountPerLine)/sizeof(bytesCountPerLine[0]);
        while (i < planeCount)
        {
-               std::unique_ptr <ByteBuffer> pByteBuffer (new ByteBuffer());
+               std::unique_ptr <ByteBuffer> pByteBuffer (new  (std::nothrow) ByteBuffer());
                r = pByteBuffer->Construct(data[i], 0, size[i], size[i]);
                SysTryReturn(NID_MEDIA, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
                __pVideoStreamBuffer[i].reset(pByteBuffer.release());