Fix signature of notifyFrameLost() and add additional assert
This commit is contained in:
parent
f2dd7888f7
commit
7d1a081fd0
2 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue