Avoid recursively taking critical section.
TEST=trybots BUG=2261 R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2258006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4800 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
dd57cd6ed5
commit
4f3624d39e
@ -61,8 +61,8 @@ void VCMReceiver::Reset() {
|
||||
}
|
||||
|
||||
int32_t VCMReceiver::Initialize() {
|
||||
CriticalSectionScoped cs(crit_sect_);
|
||||
Reset();
|
||||
CriticalSectionScoped cs(crit_sect_);
|
||||
if (!master_) {
|
||||
SetNackMode(kNoNack, -1, -1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user