mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-22 00:31:09 +00:00
Fix signature of notifyFrameLost() and add additional assert
This commit is contained in:
@@ -98,7 +98,7 @@ void destroyVideoDepacketizer(void);
|
|||||||
void queueRtpPacket(PRTPV_QUEUE_ENTRY queueEntry);
|
void queueRtpPacket(PRTPV_QUEUE_ENTRY queueEntry);
|
||||||
void stopVideoDepacketizer(void);
|
void stopVideoDepacketizer(void);
|
||||||
void requestDecoderRefresh(void);
|
void requestDecoderRefresh(void);
|
||||||
void notifyFrameLost(int frameNumber);
|
void notifyFrameLost(unsigned int frameNumber);
|
||||||
|
|
||||||
void initializeVideoStream(void);
|
void initializeVideoStream(void);
|
||||||
void destroyVideoStream(void);
|
void destroyVideoStream(void);
|
||||||
|
|||||||
@@ -893,10 +893,13 @@ static void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length,
|
|||||||
// if it determines the frame to be unrecoverable. This lets us
|
// if it determines the frame to be unrecoverable. This lets us
|
||||||
// avoid having to wait until the next received frame to determine
|
// avoid having to wait until the next received frame to determine
|
||||||
// that we lost a frame and submit an RFI request.
|
// that we lost a frame and submit an RFI request.
|
||||||
void notifyFrameLost(int frameNumber) {
|
void notifyFrameLost(unsigned int frameNumber) {
|
||||||
// This may only be called at frame boundaries
|
// This may only be called at frame boundaries
|
||||||
LC_ASSERT(!decodingFrame);
|
LC_ASSERT(!decodingFrame);
|
||||||
|
|
||||||
|
// We may not invalidate frames that we've already received
|
||||||
|
LC_ASSERT(frameNumber >= startFrameNumber);
|
||||||
|
|
||||||
// If RFI is enabled, we will notify the host PC now
|
// If RFI is enabled, we will notify the host PC now
|
||||||
if (isReferenceFrameInvalidationEnabled()) {
|
if (isReferenceFrameInvalidationEnabled()) {
|
||||||
Limelog("Sending predictive RFI request for probable loss of frame %d\n", frameNumber);
|
Limelog("Sending predictive RFI request for probable loss of frame %d\n", frameNumber);
|
||||||
|
|||||||
Reference in New Issue
Block a user