aboutsummaryrefslogtreecommitdiff
path: root/webrtc/modules/utility/source/file_recorder_impl.cc
diff options
context:
space:
mode:
authorbraveyao@webrtc.org <braveyao@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-02-24 09:19:36 +0000
committerbraveyao@webrtc.org <braveyao@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-02-24 09:19:36 +0000
commit4f0801bd39e9213779b29f68753a9adcc0ad1107 (patch)
tree8a5d1e5a9c2a7f60adedb8473f8133fe530f42f5 /webrtc/modules/utility/source/file_recorder_impl.cc
parentbc0470f559350c90a91c0357fbf7e004d3bf89fe (diff)
downloadwebrtc-4f0801bd39e9213779b29f68753a9adcc0ad1107.tar.gz
AviRecorder is missing a critical section.
BUG=2885 TEST=AUTOTEST R=perkj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/9039004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5600 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/modules/utility/source/file_recorder_impl.cc')
-rw-r--r--webrtc/modules/utility/source/file_recorder_impl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/webrtc/modules/utility/source/file_recorder_impl.cc b/webrtc/modules/utility/source/file_recorder_impl.cc
index 032869c72b..7e13c369e9 100644
--- a/webrtc/modules/utility/source/file_recorder_impl.cc
+++ b/webrtc/modules/utility/source/file_recorder_impl.cc
@@ -715,6 +715,8 @@ int32_t AviRecorder::WriteEncodedAudioData(
uint16_t millisecondsOfData,
const TickTime* playoutTS)
{
+ CriticalSectionScoped lock(_critSec);
+
if (!IsRecording())
{
return -1;