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

@ -4160,15 +4160,18 @@ Exit:
if (keepRecording)
{
hr = _ptrClientIn->Stop();
if (FAILED(hr))
if (_ptrClientIn != NULL)
{
_TraceCOMError(hr);
}
hr = _ptrClientIn->Reset();
if (FAILED(hr))
{
_TraceCOMError(hr);
hr = _ptrClientIn->Stop();
if (FAILED(hr))
{
_TraceCOMError(hr);
}
hr = _ptrClientIn->Reset();
if (FAILED(hr))
{
_TraceCOMError(hr);
}
}
// Trigger callback from module process thread