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

[ROCm/rocdecode commit: 9afec26af0]
Этот коммит содержится в:
Aryan Salmanpour
2023-11-08 11:54:35 -05:00
коммит произвёл GitHub
родитель d72a1ca3c5
Коммит b27fe23cd1
+1
Просмотреть файл
@@ -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;