Index: webrtc/voice_engine/voe_hardware_impl.cc |
diff --git a/webrtc/voice_engine/voe_hardware_impl.cc b/webrtc/voice_engine/voe_hardware_impl.cc |
index 30eb418ac904436ee2250aa8351414092006f1ca..d01caa94233787fdfcba4d3bce256d63ebb797ea 100644 |
--- a/webrtc/voice_engine/voe_hardware_impl.cc |
+++ b/webrtc/voice_engine/voe_hardware_impl.cc |
@@ -12,7 +12,6 @@ |
#include <assert.h> |
-#include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
#include "webrtc/system_wrappers/include/trace.h" |
#include "webrtc/voice_engine/include/voe_errors.h" |
#include "webrtc/voice_engine/voice_engine_impl.h" |
@@ -234,7 +233,7 @@ int VoEHardwareImpl::SetRecordingDevice(int index, |
WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), |
"SetRecordingDevice(index=%d, recordingChannel=%d)", index, |
(int)recordingChannel); |
- CriticalSectionScoped cs(_shared->crit_sec()); |
+ rtc::CritScope cs(_shared->crit_sec()); |
if (!_shared->statistics().Initialized()) { |
_shared->SetLastError(VE_NOT_INITED, kTraceError); |
@@ -345,7 +344,7 @@ int VoEHardwareImpl::SetRecordingDevice(int index, |
int VoEHardwareImpl::SetPlayoutDevice(int index) { |
WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), |
"SetPlayoutDevice(index=%d)", index); |
- CriticalSectionScoped cs(_shared->crit_sec()); |
+ rtc::CritScope cs(_shared->crit_sec()); |
if (!_shared->statistics().Initialized()) { |
_shared->SetLastError(VE_NOT_INITED, kTraceError); |