mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-24 00:47:23 +00:00
Avoid retrying renderer init if we know the error was not transient
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user