mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-22 08:08:14 +00:00
Fix unintentionally crashing the streamer when requesting FEC with packets sizes over 1024
This commit is contained in:
1 parent
ff4dbbb26d
commit
e7f8fd165e
1 file changed
+3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user