From 4f53cfcb203db3ecf99e8981eaf7bf35a9a7c926 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 13 Aug 2016 13:24:31 -0700 Subject: [PATCH] Only use 4K on GFE 3.x --- .../src/com/limelight/nvstream/http/NvHTTP.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java index 3855fc73..fdc79fad 100644 --- a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java +++ b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java @@ -387,12 +387,9 @@ public class NvHTTP { return false; } - // GFE 2.8 released without 4K support, even though it claims to have such - // support using the SupportedDisplayMode element. We'll use the new ServerCodecModeSupport - // element to tell whether 4K is supported or not. For now, we just check the existence - // of this element. I'm hopeful that the production version that ships with 4K will - // also be the first production version that has this element. - if (getXmlString(serverInfo, "ServerCodecModeSupport") == null) { + // Only allow 4K on GFE 3.x + String gfeVersionStr = getXmlString(serverInfo, "GfeVersion"); + if (gfeVersionStr == null || gfeVersionStr.startsWith("2.")) { return false; }