This reverts commit
9d65c3e06944bdd0a27146c7673e03dc8a387e34.
Fix crash issue when FastTrackUploading load YUV
pixelBuffer[0] was already invalidated after PixelBuffer::Convert.
So, we should use mPixelData[0] when we want to get the size of image.
Change-Id: I2773f0abc1e8db230b24eae503bd2d80f6908d44
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
std::ostringstream oss;
oss << "[";
oss << "pixelBuffers:" << pixelBuffers.size() << " ";
- if(!pixelBuffers.empty())
+ if(!mPixelData.empty())
{
- //oss << "size:" << pixelBuffers[0].GetWidth() << "x" << pixelBuffers[0].GetHeight() << " ";
+ oss << "size:" << mPixelData[0].GetWidth() << "x" << mPixelData[0].GetHeight() << " ";
oss << "premult:" << mPremultiplied << " ";
}
oss << "url:" << mUrl.GetUrl() << "]";