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

Unified Diff: media/audio/audio_manager_base.cc

Issue 11785002: Fix regression with audio mirroring due to observers being added while iterating over the list of ob (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: real fix Created 7 years, 12 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager_base.cc
diff --git a/media/audio/audio_manager_base.cc b/media/audio/audio_manager_base.cc
index b18f2e893aab6c86f5c1933fbf51f8d9113451e5..458e53b214f371a955c89ca1c42be0b5ae114dda 100644
--- a/media/audio/audio_manager_base.cc
+++ b/media/audio/audio_manager_base.cc
@@ -47,6 +47,8 @@ AudioManagerBase::AudioManagerBase()
max_num_input_streams_(kDefaultMaxInputStreams),
num_output_streams_(0),
num_input_streams_(0),
+ output_listeners_(
+ ObserverList<AudioDeviceListener>::NOTIFY_EXISTING_ONLY),
audio_thread_(new base::Thread("AudioThread")),
virtual_audio_input_stream_(NULL) {
#if defined(OS_WIN)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698