mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-12-03 19:51:33 +00:00
Keep RFI and IDR waits mutually exclusive
This commit is contained in:
1 parent
e64327c864
commit
ae6633eedc
1 file changed
+3
@@ -137,6 +137,7 @@ static void dropFrameState(void) {
|
|||||||
// received an IDR frame, if we explicitly need an IDR frame, or if we
|
// received an IDR frame, if we explicitly need an IDR frame, or if we
|
||||||
// just dropped a partially processed IDR frame.
|
// just dropped a partially processed IDR frame.
|
||||||
waitingForIdrFrame = true;
|
waitingForIdrFrame = true;
|
||||||
|
waitingForRefInvalFrame = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
waitingForRefInvalFrame = true;
|
waitingForRefInvalFrame = true;
|
||||||
@@ -154,6 +155,7 @@ static void dropFrameState(void) {
|
|||||||
|
|
||||||
// Request an IDR frame
|
// Request an IDR frame
|
||||||
waitingForIdrFrame = true;
|
waitingForIdrFrame = true;
|
||||||
|
waitingForRefInvalFrame = false;
|
||||||
LiRequestIdrFrame();
|
LiRequestIdrFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -783,6 +785,7 @@ void requestDecoderRefresh(void) {
|
|||||||
|
|
||||||
// Wait for the next IDR frame
|
// Wait for the next IDR frame
|
||||||
waitingForIdrFrame = true;
|
waitingForIdrFrame = true;
|
||||||
|
waitingForRefInvalFrame = false;
|
||||||
|
|
||||||
// Flush the decode unit queue
|
// Flush the decode unit queue
|
||||||
flushedEntries = LbqFlushQueueItems(&decodeUnitQueue);
|
flushedEntries = LbqFlushQueueItems(&decodeUnitQueue);
|
||||||
|
|||||||
Reference in new issue
Block a user