From 4f3624d39ec3f291016abec940eb4f1feb7d8bf7 Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Fri, 20 Sep 2013 07:43:17 +0000 Subject: [PATCH] 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 --- webrtc/modules/video_coding/main/source/receiver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/video_coding/main/source/receiver.cc b/webrtc/modules/video_coding/main/source/receiver.cc index 058cd823b..e0969ef5a 100644 --- a/webrtc/modules/video_coding/main/source/receiver.cc +++ b/webrtc/modules/video_coding/main/source/receiver.cc @@ -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); }