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

This commit is contained in:
Aryan Salmanpour
2023-11-08 11:54:35 -05:00
committed by GitHub
parent 3a5fc3608b
commit 9afec26af0
+1
View File
@@ -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;