Parse HDR option from moonlight.conf

This commit is contained in:
Cameron Gutman 2022-11-08 19:42:30 -06:00
parent c2f21b955d
commit b26d747e95

View File

@ -345,6 +345,7 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) {
config->stream.streamingRemotely = STREAM_CFG_AUTO; config->stream.streamingRemotely = STREAM_CFG_AUTO;
config->stream.audioConfiguration = AUDIO_CONFIGURATION_STEREO; config->stream.audioConfiguration = AUDIO_CONFIGURATION_STEREO;
config->stream.supportsHevc = false; config->stream.supportsHevc = false;
config->stream.enableHdr = false;
config->stream.encryptionFlags = ENCFLG_AUDIO; config->stream.encryptionFlags = ENCFLG_AUDIO;
#ifdef __arm__ #ifdef __arm__
@ -395,7 +396,7 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) {
} else { } else {
int option_index = 0; int option_index = 0;
int c; int c;
while ((c = getopt_long_only(argc, argv, "-abc:d:efg:h:i:j:k:lm:no:p:q:r:s:tu:v:w:xy45:6:", long_options, &option_index)) != -1) { while ((c = getopt_long_only(argc, argv, "-abc:d:efg:h:i:j:k:lm:no:p:q:r:s:tu:v:w:xy45:6:7", long_options, &option_index)) != -1) {
parse_argument(c, optarg, config); parse_argument(c, optarg, config);
} }
} }