diff --git a/docs/README.pod b/docs/README.pod index 20e99b2..a77dbfc 100644 --- a/docs/README.pod +++ b/docs/README.pod @@ -141,9 +141,9 @@ By default the gamecontrollerdb.txt provided by Moonlight Embedded is used. Select platform for audio and video output and input. can be pi, imx, aml, x11, x11_vdpau, sdl or fake. -=item B<-unsupported> +=item B<-nounsupported> -Try streaming if GFE version or options are unsupported +Don't stream if resolution is not officially supported by the server =item B<-quitappafter> diff --git a/src/config.c b/src/config.c index 4742dcd..071a88c 100644 --- a/src/config.c +++ b/src/config.c @@ -64,7 +64,7 @@ static struct option long_options[] = { {"surround", no_argument, NULL, 'u'}, {"fps", required_argument, NULL, 'v'}, {"codec", required_argument, NULL, 'x'}, - {"unsupported", no_argument, NULL, 'y'}, + {"nounsupported", no_argument, NULL, 'y'}, {"quitappafter", no_argument, NULL, '1'}, {"viewonly", no_argument, NULL, '2'}, {"rotate", required_argument, NULL, '3'}, @@ -213,7 +213,7 @@ static void parse_argument(int c, char* value, PCONFIGURATION config) { config->codec = CODEC_HEVC; break; case 'y': - config->unsupported = true; + config->unsupported = false; break; case '1': config->quitappafter = true; @@ -330,7 +330,7 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) { config->sops = true; config->localaudio = false; config->fullscreen = true; - config->unsupported = false; + config->unsupported = true; config->quitappafter = false; config->viewonly = false; config->rotate = 0; diff --git a/src/main.c b/src/main.c index 38c5d41..3b12272 100644 --- a/src/main.c +++ b/src/main.c @@ -104,9 +104,9 @@ static void stream(PSERVER_DATA server, PCONFIGURATION config, enum platform sys if (ret == GS_NOT_SUPPORTED_4K) fprintf(stderr, "Server doesn't support 4K\n"); else if (ret == GS_NOT_SUPPORTED_MODE) - fprintf(stderr, "Server doesn't support %dx%d (%d fps) or try --unsupported option\n", config->stream.width, config->stream.height, config->stream.fps); + fprintf(stderr, "Server doesn't support %dx%d (%d fps) or remove --nounsupported option\n", config->stream.width, config->stream.height, config->stream.fps); else if (ret == GS_NOT_SUPPORTED_SOPS_RESOLUTION) - fprintf(stderr, "SOPS isn't supported for the resolution %dx%d, use supported resolution or add --nosops option\n", config->stream.width, config->stream.height); + fprintf(stderr, "Optimal Playable Settings isn't supported for the resolution %dx%d, use supported resolution or add --nosops option\n", config->stream.width, config->stream.height); else if (ret == GS_ERROR) fprintf(stderr, "Gamestream error: %s\n", gs_error); else @@ -206,7 +206,7 @@ static void help() { printf("\t-keydir \tLoad encryption keys from directory\n"); printf("\t-mapping \t\tUse as gamepad mappings configuration file\n"); printf("\t-platform \tSpecify system used for audio, video and input: pi/imx/aml/rk/x11/x11_vdpau/sdl/fake (default auto)\n"); - printf("\t-unsupported\t\tTry streaming if GFE version or options are unsupported\n"); + printf("\t-nounsupported\t\tDon't stream if resolution is not officially supported by the server\n"); printf("\t-quitappafter\t\tSend quit app request to remote after quitting session\n"); printf("\t-viewonly\t\tDisable all input processing (view-only mode)\n"); #if defined(HAVE_SDL) || defined(HAVE_X11)