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

Unified Diff: media/audio/win/audio_low_latency_output_win.cc

Issue 10909271: Adds COM init to AudioManager thread for Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed Stop() call in ctor Created 8 years, 3 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 | « media/audio/win/audio_low_latency_output_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_low_latency_output_win.cc
diff --git a/media/audio/win/audio_low_latency_output_win.cc b/media/audio/win/audio_low_latency_output_win.cc
index 75cf93af5d4fcd6045c9e4983c2a7bc2f15f4199..4519f1ac65fed3049448cafc41d7795218f73741 100644
--- a/media/audio/win/audio_low_latency_output_win.cc
+++ b/media/audio/win/audio_low_latency_output_win.cc
@@ -386,8 +386,7 @@ AUDCLNT_SHAREMODE WASAPIAudioOutputStream::GetShareMode() {
WASAPIAudioOutputStream::WASAPIAudioOutputStream(AudioManagerWin* manager,
const AudioParameters& params,
ERole device_role)
- : com_init_(ScopedCOMInitializer::kMTA),
- creating_thread_id_(base::PlatformThread::CurrentId()),
+ : creating_thread_id_(base::PlatformThread::CurrentId()),
manager_(manager),
opened_(false),
started_(false),
@@ -400,7 +399,6 @@ WASAPIAudioOutputStream::WASAPIAudioOutputStream(AudioManagerWin* manager,
num_written_frames_(0),
source_(NULL),
audio_bus_(AudioBus::Create(params)) {
- CHECK(com_init_.succeeded());
DCHECK(manager_);
// Load the Avrt DLL if not already loaded. Required to support MMCSS.
« no previous file with comments | « media/audio/win/audio_low_latency_output_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698