Only use 4K on GFE 3.x

This commit is contained in:
Cameron Gutman 2016-08-13 13:24:31 -07:00
parent ffd70986b3
commit 4f53cfcb20

View File

@ -387,12 +387,9 @@ public class NvHTTP {
return false; return false;
} }
// GFE 2.8 released without 4K support, even though it claims to have such // Only allow 4K on GFE 3.x
// support using the SupportedDisplayMode element. We'll use the new ServerCodecModeSupport String gfeVersionStr = getXmlString(serverInfo, "GfeVersion");
// element to tell whether 4K is supported or not. For now, we just check the existence if (gfeVersionStr == null || gfeVersionStr.startsWith("2.")) {
// 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) {
return false; return false;
} }