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:
parent
03b7f50a48
commit
f5c6573725
@ -638,7 +638,7 @@ int VoEFileImpl::StopRecordingMicrophone()
|
|||||||
_engineStatistics.SetLastError(VE_NOT_INITED, kTraceError);
|
_engineStatistics.SetLastError(VE_NOT_INITED, kTraceError);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if ((NumOfSendingChannels() == 0)&&!_transmitMixerPtr->IsRecordingMic())
|
if ((NumOfSendingChannels() == 0)&&_audioDevicePtr->Recording())
|
||||||
{
|
{
|
||||||
// Stop audio-device recording if no channel is recording
|
// Stop audio-device recording if no channel is recording
|
||||||
if (_audioDevicePtr->StopRecording() != 0)
|
if (_audioDevicePtr->StopRecording() != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user