From f5c657372517947cca2247f3762c9ea59e6fe8c4 Mon Sep 17 00:00:00 2001 From: "braveyao@webrtc.org" Date: Mon, 16 Jan 2012 03:04:46 +0000 Subject: [PATCH] fix defect http://code.google.com/p/webrtc/issues/detail?id=215, audio device is not stopped appropriately. Review URL: http://webrtc-codereview.appspot.com/350008 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1427 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/voice_engine/main/source/voe_file_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/voice_engine/main/source/voe_file_impl.cc b/src/voice_engine/main/source/voe_file_impl.cc index f782432bb..16bac9fe1 100644 --- a/src/voice_engine/main/source/voe_file_impl.cc +++ b/src/voice_engine/main/source/voe_file_impl.cc @@ -638,7 +638,7 @@ int VoEFileImpl::StopRecordingMicrophone() _engineStatistics.SetLastError(VE_NOT_INITED, kTraceError); return -1; } - if ((NumOfSendingChannels() == 0)&&!_transmitMixerPtr->IsRecordingMic()) + if ((NumOfSendingChannels() == 0)&&_audioDevicePtr->Recording()) { // Stop audio-device recording if no channel is recording if (_audioDevicePtr->StopRecording() != 0)