one logical enhancement in CoreAudio error handler. It should never happen, but so far the only suspect to a rare crash report.

Review URL: http://webrtc-codereview.appspot.com/349002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1382 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
braveyao@webrtc.org 2012-01-11 03:07:52 +00:00
parent 681172ef1e
commit e3eaf44ccf

View File

@ -4159,6 +4159,8 @@ Exit:
RevertCaptureThreadPriority(); RevertCaptureThreadPriority();
if (keepRecording) if (keepRecording)
{
if (_ptrClientIn != NULL)
{ {
hr = _ptrClientIn->Stop(); hr = _ptrClientIn->Stop();
if (FAILED(hr)) if (FAILED(hr))
@ -4170,6 +4172,7 @@ Exit:
{ {
_TraceCOMError(hr); _TraceCOMError(hr);
} }
}
// Trigger callback from module process thread // Trigger callback from module process thread
_recError = 1; _recError = 1;