Lock use of _packetRequestCallback in VCM.
BUG= R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2190006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4708 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
7ebf0e7f44
commit
021c42bfa8
@ -173,12 +173,9 @@ VideoCodingModuleImpl::Process() {
|
||||
// disabled when NACK is off.
|
||||
if (_retransmissionTimer.TimeUntilProcess() == 0) {
|
||||
_retransmissionTimer.Processed();
|
||||
if (_packetRequestCallback != NULL) {
|
||||
uint16_t length;
|
||||
{
|
||||
CriticalSectionScoped cs(_receiveCritSect);
|
||||
length = max_nack_list_size_;
|
||||
}
|
||||
if (_packetRequestCallback != NULL) {
|
||||
uint16_t length = max_nack_list_size_;
|
||||
std::vector<uint16_t> nackList(length);
|
||||
const int32_t ret = NackList(&nackList[0], length);
|
||||
if (ret != VCM_OK && returnValue == VCM_OK) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user