mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 05:34:17 +00:00
Remove hard limits for bitrate and FPS command-line options
This commit is contained in:
parent
76fd502262
commit
9043e8f663
1 changed files with 2 additions and 2 deletions
|
@ -414,7 +414,7 @@ void StreamCommandLineParser::parse(const QStringList &args, StreamingPreference
|
||||||
if (parser.isSet("fps")) {
|
if (parser.isSet("fps")) {
|
||||||
preferences->fps = parser.getIntOption("fps");
|
preferences->fps = parser.getIntOption("fps");
|
||||||
if (!inRange(preferences->fps, 10, 480)) {
|
if (!inRange(preferences->fps, 10, 480)) {
|
||||||
parser.showError("FPS must be in range: 10 - 480");
|
fprintf(stderr, "Warning: FPS is out of the supported range (10 - 480 FPS). Performance may suffer!\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -422,7 +422,7 @@ void StreamCommandLineParser::parse(const QStringList &args, StreamingPreference
|
||||||
if (parser.isSet("bitrate")) {
|
if (parser.isSet("bitrate")) {
|
||||||
preferences->bitrateKbps = parser.getIntOption("bitrate");
|
preferences->bitrateKbps = parser.getIntOption("bitrate");
|
||||||
if (!inRange(preferences->bitrateKbps, 500, 500000)) {
|
if (!inRange(preferences->bitrateKbps, 500, 500000)) {
|
||||||
parser.showError("Bitrate must be in range: 500 - 500000");
|
fprintf(stderr, "Warning: Bitrate is out of the supported range (500 - 500000 Kbps). Performance may suffer!\n");
|
||||||
}
|
}
|
||||||
} else if (displaySet || parser.isSet("fps")) {
|
} else if (displaySet || parser.isSet("fps")) {
|
||||||
preferences->bitrateKbps = preferences->getDefaultBitrate(
|
preferences->bitrateKbps = preferences->getDefaultBitrate(
|
||||||
|
|
Loading…
Reference in a new issue