This CL is about to manually reset the ShutdownRenderEvent at StopPlayout().
It could happen that if you want to restart playout, the new sponsored Render thread would catch this event if the previous Render thread quits before this event is set. With this modification, the device plugging out/in during talking would be supported well. Review URL: http://webrtc-codereview.appspot.com/248002 git-svn-id: http://webrtc.googlecode.com/svn/trunk@839 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -3112,6 +3112,11 @@ WebRtc_Word32 AudioDeviceWindowsCore::StopPlayout()
|
||||
CriticalSectionScoped critScoped(_critSect);
|
||||
WEBRTC_TRACE(kTraceInfo, kTraceAudioDevice, _id,
|
||||
"webrtc_core_audio_render_thread is now closed");
|
||||
|
||||
// to reset this event manually at each time we finish with it,
|
||||
// in case that the render thread has exited before StopPlayout(),
|
||||
// this event might be caught by the new render thread within same VoE instance.
|
||||
ResetEvent(_hShutdownRenderEvent);
|
||||
|
||||
SAFE_RELEASE(_ptrClientOut);
|
||||
SAFE_RELEASE(_ptrRenderClient);
|
||||
|
Reference in New Issue
Block a user