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
This commit is contained in:
braveyao@webrtc.org 2012-01-16 03:04:46 +00:00
parent 03b7f50a48
commit f5c6573725

View File

@ -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)