This patch returns an error if mPreProc.Run call failed correctly.
Change-Id: Ie8b75481e773115a1253ac448175da6cd0efa99d
Signed-off-by: Inki Dae <inki.dae@samsung.com>
int data_type = ConvertToCv(tensor_buffer.data_type);
ret = mPreProc.Run(cvSource, colorspace, data_type, layerInfo, opt, tensor_buffer.buffer);
+ if (ret != MEDIA_VISION_ERROR_NONE) {
+ LOGE("Fail to run preprocess.");
+ return ret;
+ }
}
} else {
for (auto& buffer : mInputTensorBuffers.getAllTensorBuffer()) {