mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-29 09:14:13 +00:00
Add LiRequestIdrFrame() API for requesting an IDR frame on demand
This commit is contained in:
1 parent
502f799a73
commit
9240090983
4 files changed
+15
-9
No files matched your search
@@ -113,7 +113,7 @@ static void dropFrameState(void) {
|
||||
|
||||
// Request an IDR frame
|
||||
waitingForIdrFrame = true;
|
||||
requestIdrOnDemand();
|
||||
LiRequestIdrFrame();
|
||||
}
|
||||
|
||||
cleanupFrameState();
|
||||
@@ -415,7 +415,7 @@ static void reassembleFrame(int frameNumber) {
|
||||
|
||||
// Request an IDR frame to recover (RFI recovery is not supported here)
|
||||
waitingForIdrFrame = true;
|
||||
requestIdrOnDemand();
|
||||
LiRequestIdrFrame();
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -608,7 +608,7 @@ void requestDecoderRefresh(void) {
|
||||
dropStatePending = true;
|
||||
|
||||
// Request the IDR frame
|
||||
requestIdrOnDemand();
|
||||
LiRequestIdrFrame();
|
||||
}
|
||||
|
||||
// Return 1 if packet is the first one in the frame
|
||||
@@ -843,7 +843,7 @@ static void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length,
|
||||
// detection of the recovery of the network. Requesting an IDR frame while
|
||||
// the network is unstable will just contribute to congestion collapse.
|
||||
if (waitingForNextSuccessfulFrame) {
|
||||
requestIdrOnDemand();
|
||||
LiRequestIdrFrame();
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user