Check display mode before streaming

This commit is contained in:
Iwan Timmer
2017-05-27 16:41:52 +02:00
parent 7e73de80b3
commit 0e1cabbd82
6 changed files with 79 additions and 0 deletions

View File

@@ -88,6 +88,8 @@ static void stream(PSERVER_DATA server, PCONFIGURATION config, enum platform sys
if (ret < 0) {
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)\n", config->stream.width, config->stream.height, config->stream.fps);
else
fprintf(stderr, "Errorcode starting app: %d\n", ret);
exit(-1);