mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-02-16 10:30:59 +00:00
Explicitly request an IDR frame in the IDR frame wait path
This commit is contained in:
@@ -839,11 +839,11 @@ static void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length,
|
||||
if (waitingForIdrFrame) {
|
||||
Limelog("Waiting for IDR frame\n");
|
||||
|
||||
// If waiting for next successful frame and we got here
|
||||
// with an end flag, we can send a message to the server
|
||||
// We wait for the first fully received frame after a loss to approximate
|
||||
// detection of the recovery of the network. Requesting an IDR frame while
|
||||
// the network is unstable will just contribute to congestion collapse.
|
||||
if (waitingForNextSuccessfulFrame) {
|
||||
// This is the next successful frame after a loss event
|
||||
connectionDetectedFrameLoss(startFrameNumber, frameIndex);
|
||||
requestIdrOnDemand();
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user