mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-17 05:39:53 +00:00
Merge branch 'invalidateFrames' of https://github.com/irtimmer/moonlight-common-c
This commit is contained in:
@@ -59,8 +59,6 @@ static void cleanupAvcFrameState(void) {
|
||||
|
||||
/* Cleanup AVC frame state and set that we're waiting for an IDR Frame*/
|
||||
static void dropAvcFrameState(void) {
|
||||
waitingForIdrFrame = 1;
|
||||
|
||||
// Count the number of consecutive frames dropped
|
||||
consecutiveFrameDrops++;
|
||||
|
||||
@@ -72,7 +70,8 @@ static void dropAvcFrameState(void) {
|
||||
consecutiveFrameDrops = 0;
|
||||
|
||||
// Request an IDR frame
|
||||
connectionDetectedFrameLoss(0, 0);
|
||||
waitingForIdrFrame = 1;
|
||||
requestIdrOnDemand();
|
||||
}
|
||||
|
||||
cleanupAvcFrameState();
|
||||
@@ -371,9 +370,6 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
|
||||
|
||||
// Unexpected start of next frame before terminating the last
|
||||
waitingForNextSuccessfulFrame = 1;
|
||||
waitingForIdrFrame = 1;
|
||||
|
||||
// Clear the old state and wait for an IDR
|
||||
dropAvcFrameState();
|
||||
}
|
||||
// Look for a non-frame start before a frame start
|
||||
@@ -405,7 +401,7 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
|
||||
Limelog("Network dropped an entire frame\n");
|
||||
nextFrameNumber = frameIndex;
|
||||
|
||||
// Wait until an IDR frame comes
|
||||
// Wait until next complete frame
|
||||
waitingForNextSuccessfulFrame = 1;
|
||||
dropAvcFrameState();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user