mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-20 07:00:15 +00:00
Update control connection for GFE 2.0.1+. Remove config and handshake code that isn't used on GFE 2.0.1+
This commit is contained in:
@@ -12,6 +12,7 @@ static int nextPacketNumber;
|
||||
static int startFrameNumber = 1;
|
||||
static int waitingForNextSuccessfulFrame;
|
||||
static int gotNextFrameStart;
|
||||
static int lastPacketInStream = 0;
|
||||
|
||||
static LINKED_BLOCKING_QUEUE decodeUnitQueue;
|
||||
|
||||
@@ -124,6 +125,9 @@ static void reassembleFrame(int frameNumber) {
|
||||
// FIXME: Get proper lower bound
|
||||
connectionSinkTooSlow(0, frameNumber);
|
||||
}
|
||||
|
||||
// Notify the control connection
|
||||
connectionReceivedFrame(frameNumber);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -332,6 +336,13 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
|
||||
}
|
||||
}
|
||||
|
||||
int streamPacketIndex = videoPacket->streamPacketIndex;
|
||||
if (streamPacketIndex != (int) (lastPacketInStream + 1)) {
|
||||
// Packets were lost so report this to the server
|
||||
connectionLostPackets(lastPacketInStream, streamPacketIndex);
|
||||
}
|
||||
lastPacketInStream = streamPacketIndex;
|
||||
|
||||
nextPacketNumber++;
|
||||
|
||||
// Remove extra padding
|
||||
|
||||
Reference in New Issue
Block a user