Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: content/renderer/media/webrtc/peer_connection_dependency_factory.cc

Issue 310463002: Fix the aec dump crash when users disable aec dump without closing the "Save File" overlay. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed the bots Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/media/webrtc_internals.cc ('k') | content/renderer/media/webrtc_audio_device_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc/peer_connection_dependency_factory.cc
diff --git a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
index a50e17db3ac850bb08598e67c40844178f90b5e2..c4d69dd64a109db2ab9ce5e5107452a876f9acd9 100644
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
@@ -643,7 +643,9 @@ void PeerConnectionDependencyFactory::OnAecDumpFile(
void PeerConnectionDependencyFactory::OnDisableAecDump() {
if (MediaStreamAudioProcessor::IsAudioTrackProcessingEnabled()) {
- GetWebRtcAudioDevice()->DisableAecDump();
+ // Do nothing if OnAecDumpFile() has never been called.
+ if (GetWebRtcAudioDevice())
+ GetWebRtcAudioDevice()->DisableAecDump();
return;
}
« no previous file with comments | « content/browser/media/webrtc_internals.cc ('k') | content/renderer/media/webrtc_audio_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698