Fixes potential race in the jitter buffer.

BUG=879

Review URL: https://webrtc-codereview.appspot.com/845007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2831 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org
2012-09-27 10:00:38 +00:00
parent e8ebbdad09
commit a3a230f2cb

View File

@ -787,11 +787,11 @@ VCMJitterBuffer::GetCompleteFrameForDecoding(WebRtc_UWord32 maxWaitTimeMS)
_waitingForKeyFrame = false;
}
_critSect->Leave();
// We have a frame - update decoded state with frame info.
_lastDecodedState.SetState(oldestFrame);
_critSect->Leave();
return oldestFrame;
}