mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-28 08:44:21 +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
|
||||
// just dropped a partially processed IDR frame.
|
||||
waitingForIdrFrame = true;
|
||||
waitingForRefInvalFrame = false;
|
||||
}
|
||||
else {
|
||||
waitingForRefInvalFrame = true;
|
||||
@@ -154,6 +155,7 @@ static void dropFrameState(void) {
|
||||
|
||||
// Request an IDR frame
|
||||
waitingForIdrFrame = true;
|
||||
waitingForRefInvalFrame = false;
|
||||
LiRequestIdrFrame();
|
||||
}
|
||||
|
||||
@@ -783,6 +785,7 @@ void requestDecoderRefresh(void) {
|
||||
|
||||
// Wait for the next IDR frame
|
||||
waitingForIdrFrame = true;
|
||||
waitingForRefInvalFrame = false;
|
||||
|
||||
// Flush the decode unit queue
|
||||
flushedEntries = LbqFlushQueueItems(&decodeUnitQueue);
|
||||
|
||||
Reference in new issue
Block a user