swap the renderer_ reference to local before calling Stop(), otherwise we will...
swap the renderer_ reference to local before calling Stop(), otherwise we will invalidate the pointer during the Stop() call. The problem that this CL is trying to fix: In WebRtcAudioDeviceImpl::Terminate(), when the renderer_ is valid and we call renderer_->Stop(), this Stop() function will trigger a callback till WebRtcAudioDeviceImpl::RemoveAudioRenderer() where we set the renderer_ to NULL. This will crash chrome since renderer_ is being used at the same time. BUG=241430 Review URL: https://chromiumcodereview.appspot.com/15732021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202420 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment