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

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

Issue 10580033: Allow AudioDevice to be constructed on any thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/audio_device.cc
===================================================================
--- content/renderer/media/audio_device.cc (revision 142824)
+++ content/renderer/media/audio_device.cc (working copy)
@@ -46,7 +46,7 @@
stream_id_(0),
play_on_start_(true),
is_started_(false) {
- filter_ = RenderThreadImpl::current()->audio_message_filter();
+ filter_ = AudioMessageFilter::current();
henrika (OOO until Aug 14) 2012/06/20 12:33:52 By not injecting you make it much more difficult t
henrika (OOO until Aug 14) 2012/06/20 17:15:53 Bad example; sorry. I meant create the AD and perf
}
AudioDevice::AudioDevice(const media::AudioParameters& params,
@@ -58,7 +58,7 @@
stream_id_(0),
play_on_start_(true),
is_started_(false) {
- filter_ = RenderThreadImpl::current()->audio_message_filter();
+ filter_ = AudioMessageFilter::current();
}
void AudioDevice::Initialize(const media::AudioParameters& params,
« no previous file with comments | « no previous file | content/renderer/media/audio_message_filter.h » ('j') | content/renderer/media/audio_message_filter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698