Return an error if the video parser creation fails (#45)
[ROCm/rocdecode commit: 9afec26af0]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d72a1ca3c5
Коммит
b27fe23cd1
@@ -36,6 +36,7 @@ rocDecCreateVideoParser(RocdecVideoParser *pHandle, RocdecParserParams *pParams)
|
||||
}
|
||||
catch(const std::exception& e) {
|
||||
ERR( STR("Failed to init the rocDecode handle, ") + STR(e.what()))
|
||||
return ROCDEC_RUNTIME_ERROR;
|
||||
}
|
||||
*pHandle = handle;
|
||||
return rocDecStatus::ROCDEC_SUCCESS;
|
||||
|
||||
Ссылка в новой задаче
Block a user