From 77d07c7c4d51265b2043e2f536396f549fa268cb Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 6 Jan 2022 22:08:43 -0600 Subject: [PATCH] Fix incorrect error message when only HEVC decode is available but HEVC encode is not --- app/streaming/session.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 6ec1106a..5f4107ed 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -653,16 +653,16 @@ bool Session::validateLaunch(SDL_Window* testWindow) } } - if (hevcForced) { - if (m_Computer->maxLumaPixelsHEVC == 0) { + if (m_Computer->maxLumaPixelsHEVC == 0) { + if (hevcForced) { emitLaunchWarning(tr("Your host PC GPU doesn't support HEVC. " "A GeForce GTX 900-series (Maxwell) or later GPU is required for HEVC streaming.")); - - // Moonlight-common-c will handle this case already, but we want - // to set this explicitly here so we can do our hardware acceleration - // check below. - m_StreamConfig.supportsHevc = false; } + + // Moonlight-common-c will handle this case already, but we want + // to set this explicitly here so we can do our hardware acceleration + // check below. + m_StreamConfig.supportsHevc = false; } }