From c93b1d038d16c286e0ff4966f0fe55f9ebe5f710 Mon Sep 17 00:00:00 2001 From: "braveyao@webrtc.org" Date: Wed, 15 May 2013 10:14:56 +0000 Subject: [PATCH] CoreAudio Win: release resources safely under certain rare circumstance in GTalkplugin BUG= TEST=voe_auto_test R=henrika@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1479004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4033 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/audio_device/win/audio_device_core_win.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/webrtc/modules/audio_device/win/audio_device_core_win.cc b/webrtc/modules/audio_device/win/audio_device_core_win.cc index 5783113ec..f73215124 100644 --- a/webrtc/modules/audio_device/win/audio_device_core_win.cc +++ b/webrtc/modules/audio_device/win/audio_device_core_win.cc @@ -3541,11 +3541,9 @@ DWORD AudioDeviceWindowsCore::DoRenderThread() case WAIT_OBJECT_0 + 1: // _hRenderSamplesReadyEvent break; case WAIT_TIMEOUT: // timeout notification - _ptrClientOut->Stop(); WEBRTC_TRACE(kTraceWarning, kTraceAudioDevice, _id, "render event timed out after 0.5 seconds"); goto Exit; default: // unexpected error - _ptrClientOut->Stop(); WEBRTC_TRACE(kTraceWarning, kTraceAudioDevice, _id, "unknown wait termination on render side"); goto Exit; } @@ -3999,11 +3997,9 @@ DWORD AudioDeviceWindowsCore::DoCaptureThread() case WAIT_OBJECT_0 + 1: // _hCaptureSamplesReadyEvent break; case WAIT_TIMEOUT: // timeout notification - _ptrClientIn->Stop(); WEBRTC_TRACE(kTraceWarning, kTraceAudioDevice, _id, "capture event timed out after 0.5 seconds"); goto Exit; default: // unexpected error - _ptrClientIn->Stop(); WEBRTC_TRACE(kTraceWarning, kTraceAudioDevice, _id, "unknown wait termination on capture side"); goto Exit; }