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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user