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

Unified Diff: content/renderer/media/webrtc_audio_device_impl.h

Issue 131213003: Fixed the racing in the resampler of webrtc when two streams are calling OnData() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed the comments. Created 6 years, 11 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 | « no previous file | 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_audio_device_impl.h
diff --git a/content/renderer/media/webrtc_audio_device_impl.h b/content/renderer/media/webrtc_audio_device_impl.h
index f515c6e24cbc2bcea6d2bcb7fb027e6cc39b23e0..1d904fa496202277130bc900edb0aea72b525472 100644
--- a/content/renderer/media/webrtc_audio_device_impl.h
+++ b/content/renderer/media/webrtc_audio_device_impl.h
@@ -385,6 +385,10 @@ class CONTENT_EXPORT WebRtcAudioDeviceImpl
// |recording_| and |microphone_volume_|.
mutable base::Lock lock_;
+ // Used to protect the racing of calling OnData() since there can be more
+ // than one input stream calling OnData().
+ mutable base::Lock capture_callback_lock_;
+
bool initialized_;
bool playing_;
bool recording_;
« no previous file with comments | « no previous file | content/renderer/media/webrtc_audio_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698