Avoid retrying renderer init if we know the error was not transient

This commit is contained in:
Cameron Gutman committed 2025-02-18 19:02:12 -06:00
1 parent 351aaa6759
commit fd70865026
13 files changed
+116 -32

No files matched your search

@@ -22,6 +22,7 @@ bool CUDARenderer::initialize(PDECODER_PARAMETERS)
err = av_hwdevice_ctx_create(&m_HwContext, AV_HWDEVICE_TYPE_CUDA, nullptr, nullptr, 0);
if (err != 0) {
m_InitFailureReason = InitFailureReason::NoSoftwareSupport;
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
"av_hwdevice_ctx_create(CUDA) failed: %d",
err);