Fixed bug in jitter buffer which caused the missingFrames bit to never be set.

Also updated the VP8 wrapper to return fully concealed frames (for rendering).

BUG=
TEST=

Review URL: http://webrtc-codereview.appspot.com/190003

git-svn-id: http://webrtc.googlecode.com/svn/trunk@687 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org
2011-10-04 06:48:11 +00:00
parent 61b4abf1f8
commit 93d216c23f
3 changed files with 68 additions and 52 deletions

View File

@@ -1115,7 +1115,6 @@ VCMJitterBuffer::GetFrameForDecoding()
_waitingForCompletion.latestPacketTime =
oldestFrame->LatestPacketTimeMs();
_waitingForCompletion.timestamp = oldestFrame->TimeStamp();
oldestFrame->SetState(kStateDecoding);
}
_frameBuffersTSOrder.Erase(oldestFrameListItem);
oldestFrameListItem = NULL;
@@ -1123,7 +1122,10 @@ VCMJitterBuffer::GetFrameForDecoding()
CleanUpOldFrames();
CleanUpSizeZeroFrames();
// Look for previous frame loss
VerifyAndSetPreviousFrameLost(*oldestFrame);
// Set as decoding. Propagates the missingFrame bit.
oldestFrame->SetState(kStateDecoding);
// Store current seqnum & time
_lastDecodedSeqNum = oldestFrame->GetHighSeqNum();