Change-Id: I4081f923333ec7314e50875a0104688f89e2fa38
Signed-off-by: rahul varna <rahul.varna@samsung.com>
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());