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

Unified Diff: content/renderer/media/webrtc_audio_capturer.cc

Issue 15031003: Fixed the crash when the WebRtcAudioCapturer::|buffer_| is NULL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: content/renderer/media/webrtc_audio_capturer.cc
diff --git a/content/renderer/media/webrtc_audio_capturer.cc b/content/renderer/media/webrtc_audio_capturer.cc
index 92951e25ea9b7a75aa6bb8030194ae080afb0e4d..920f0f0d4db12abf51e20e856b64134f7b016b2f 100644
--- a/content/renderer/media/webrtc_audio_capturer.cc
+++ b/content/renderer/media/webrtc_audio_capturer.cc
@@ -379,7 +379,7 @@ void WebRtcAudioCapturer::OnCaptureError() {
media::AudioParameters WebRtcAudioCapturer::audio_parameters() const {
base::AutoLock auto_lock(lock_);
- return buffer_->params();
+ return buffer_.get() ? buffer_->params() : media::AudioParameters();
henrika (OOO until Aug 14) 2013/05/07 09:13:27 Add comment about why this can happen and what the
no longer working on chromium 2013/05/07 09:21:48 Done.
}
} // namespace content
« no previous file with comments | « no previous file | content/renderer/media/webrtc_local_audio_track.cc » ('j') | content/renderer/media/webrtc_local_audio_track.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698