From e7f8fd165e716ee32e9b3f8680a6e0c88e7ce237 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 6 May 2017 16:01:35 -0700 Subject: [PATCH] Fix unintentionally crashing the streamer when requesting FEC with packets sizes over 1024 --- src/Connection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Connection.c b/src/Connection.c index 7e966df..2727e03 100644 --- a/src/Connection.c +++ b/src/Connection.c @@ -214,6 +214,9 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre memcpy(&StreamConfig, streamConfig, sizeof(StreamConfig)); RemoteAddrString = strdup(serverInfo->address); + // Because FEC is now supported, we can only support 1024 byte packets + StreamConfig.packetSize = 1024; + // Extract the appversion from the supplied string if (extractVersionQuadFromString(serverInfo->serverInfoAppVersion, AppVersionQuad) < 0) {