Descriptionswap 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202420
Patch Set 1 : #
Total comments: 4
Patch Set 2 : addressed Tommi's comment. #Messages
Total messages: 12 (0 generated)
|