From 67dc2ef9ab22fcd541fd3a710e10920d335c9fbe Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 16 Dec 2015 16:39:38 -0800 Subject: [PATCH] Properly handle 4K detection on GFE 2.8 --- .../src/com/limelight/nvstream/http/NvHTTP.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java index 723fa05f..a0efb2a5 100644 --- a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java +++ b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java @@ -374,13 +374,12 @@ public class NvHTTP { return false; } - // GFE 2.7 released without 4K support, even though it claims to have such - // support using the SupportedDisplayMode element. We'll use the new GfeVersion + // 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. - String gfeVersion = getXmlString(serverInfo, "GfeVersion"); - if (gfeVersion == null) { + if (getXmlString(serverInfo, "ServerCodecModeSupport") == null) { return false; }