mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-22 00:31:09 +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) {
|
if (waitingForIdrFrame) {
|
||||||
Limelog("Waiting for IDR frame\n");
|
Limelog("Waiting for IDR frame\n");
|
||||||
|
|
||||||
// If waiting for next successful frame and we got here
|
// We wait for the first fully received frame after a loss to approximate
|
||||||
// with an end flag, we can send a message to the server
|
// detection of the recovery of the network. Requesting an IDR frame while
|
||||||
|
// the network is unstable will just contribute to congestion collapse.
|
||||||
if (waitingForNextSuccessfulFrame) {
|
if (waitingForNextSuccessfulFrame) {
|
||||||
// This is the next successful frame after a loss event
|
requestIdrOnDemand();
|
||||||
connectionDetectedFrameLoss(startFrameNumber, frameIndex);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user