From e01c42153c037fc4f3b40f931124e4e7c3bad2d7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 19 Aug 2024 20:58:16 -0500 Subject: [PATCH] Allow software decoding if YUV444 is selected rather than falling back to YUV420 --- app/streaming/session.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 411e2f98..3637414d 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -1004,7 +1004,13 @@ bool Session::validateLaunch(SDL_Window* testWindow) m_StreamConfig.width, m_StreamConfig.height, m_StreamConfig.fps)) { - m_SupportedVideoFormats.removeFirst(); + if (m_Preferences->videoDecoderSelection == StreamingPreferences::VDS_FORCE_HARDWARE) { + m_SupportedVideoFormats.removeFirst(); + } + else { + emitLaunchWarning(tr("Using software decoding due to your selection to force YUV 4:4:4 without GPU support. This may cause poor streaming performance.")); + break; + } } if (!m_SupportedVideoFormats.isEmpty() && !(m_SupportedVideoFormats.front() & VIDEO_FORMAT_MASK_YUV444)) {