Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

Commit

Permalink
Remove resolutions that aren't supported on GFE 2.7 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Feb 19, 2016
1 parent 411ba09 commit f50f205
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/com/limelight/settings/PreferencesManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ public static class Preferences implements Serializable {
/**
* The possible resolutions for the stream
*/
public enum Resolution { RES_720_30(1280, 720, 30, 5), RES_720_60(1280, 720, 60, 10),
RES_768_30(1366, 768, 30, 5), RES_768_60(1366, 768, 60, 10),
RES_900_30(1600, 900, 30, 10), RES_900_60(1600, 900, 60, 15),
RES_1050_30(1680, 1050, 30, 10), RES_1050_60(1680, 1050, 60, 20),
public enum Resolution { RES_720_30(1280, 720, 30, 5), RES_720_60(1280, 720, 60, 10),
RES_1080_30(1920, 1080, 30, 10), RES_1080_60(1920, 1080, 60, 20);
public int width;
public int height;
Expand Down Expand Up @@ -156,6 +153,11 @@ public void setHost(String host) {
* @return the stored resolution
*/
public Resolution getResolution() {
// We removed some resolution values, so fixup the resolution
// if the enum value couldn't be found
if (res == null) {
res = Resolution.RES_720_60;
}
return res;
}

Expand Down

0 comments on commit f50f205

Please sign in to comment.