if (inPixelFormat == __pixelFormat && convertDim.width == __width && convertDim.height == __height)
{
- pOutBitmap.reset(_BitmapImpl::GetNonScaledBitmapN(*pTmpByteBuffer.get(), convertDim, pixelFormat));
+ pOutBitmap.reset(_BitmapImpl::GetNonScaledBitmapN(*pTmpByteBuffer.get(), convertDim, pixelFormat, destDim));
}
else
{
r = GetLastResult();
SysTryReturn(NID_MEDIA, r == E_SUCCESS, null, r, "[%s] Propagated.", GetErrorMessage(r));
- pOutBitmap.reset(_BitmapImpl::GetNonScaledBitmapN(*pOutBuf.get(), convertDim, pixelFormat));
+ pOutBitmap.reset(_BitmapImpl::GetNonScaledBitmapN(*pOutBuf.get(), convertDim, pixelFormat, destDim));
}
SysTryReturn(NID_MEDIA, pOutBitmap.get() != null, null, GetLastResult(), "[%s] Propagated.", GetErrorMessage(GetLastResult()));
SysTryReturn(NID_MEDIA, pBmp.get() != null, null, E_OUT_OF_MEMORY,
"[%s] new Bitmap", GetErrorMessage(GetLastResult()));
- pBmp.reset(_BitmapImpl::GetNonScaledBitmapN(*pBuf.get(), tmpDim, pixelFormat));
+ pBmp.reset(_BitmapImpl::GetNonScaledBitmapN(*pBuf.get(), tmpDim, pixelFormat, destDim));
SetLastResult(E_SUCCESS);
return pBmp.release();
}
if (__pSession.get() != null)
{
__pSessionImpl = null;
+ __pSession.reset(null);
}
if (__pTransaction.get() != null)
{
__pTransactionImpl = null;
+ __pTransaction.reset(null);
}
}
r = __pTransactionImpl->SetTimeout(sec);
SysTryCatch(NID_MEDIA, r == E_SUCCESS, , r, "[%s] Failed to set timeout.", GetErrorMessage(r));
- r = __pTransactionImpl->AddHttpTransactionListener(*(this->__pListener.release()));
+ r = __pTransactionImpl->AddHttpTransactionListener(*(this->__pListener.get()));
SysTryCatch(NID_MEDIA, r == E_SUCCESS, , r, "[%s] Failed to add listener into the HTTP transaction.", GetErrorMessage(r));
__pRequest = __pTransactionImpl->GetRequest();