Return an error if the video parser creation fails (#45)
[ROCm/rocdecode commit: 9afec26af0]
This commit is contained in:
@@ -36,6 +36,7 @@ rocDecCreateVideoParser(RocdecVideoParser *pHandle, RocdecParserParams *pParams)
|
|||||||
}
|
}
|
||||||
catch(const std::exception& e) {
|
catch(const std::exception& e) {
|
||||||
ERR( STR("Failed to init the rocDecode handle, ") + STR(e.what()))
|
ERR( STR("Failed to init the rocDecode handle, ") + STR(e.what()))
|
||||||
|
return ROCDEC_RUNTIME_ERROR;
|
||||||
}
|
}
|
||||||
*pHandle = handle;
|
*pHandle = handle;
|
||||||
return rocDecStatus::ROCDEC_SUCCESS;
|
return rocDecStatus::ROCDEC_SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user