Return an error if the video parser creation fails (#45)

[ROCm/rocdecode commit: 9afec26af0]
This commit is contained in:
Aryan Salmanpour
2023-11-08 11:54:35 -05:00
committed by GitHub
parent d72a1ca3c5
commit 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;