diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-02 20:51:33 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-02 20:51:33 +0000 |
commit | 02037c63e776ba5661531e7720cf9efcd1fa2b68 (patch) | |
tree | 096066c43f8858c72c43536c9258cf4a4fbab33e /remoting/host/audio_capturer_win.cc | |
parent | 0867cb17a83fa04cda2ce8336584653541493123 (diff) | |
download | chromium_src-02037c63e776ba5661531e7720cf9efcd1fa2b68.zip chromium_src-02037c63e776ba5661531e7720cf9efcd1fa2b68.tar.gz chromium_src-02037c63e776ba5661531e7720cf9efcd1fa2b68.tar.bz2 |
Don't use ScopedCOMInitializer in AudioCapturerWin
COM needs to be initialized per-thread, AudioCapturerWin was
using ScopedCOMInitializer.
BUG=146392
Review URL: https://codereview.chromium.org/11369038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165746 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/audio_capturer_win.cc')
-rw-r--r-- | remoting/host/audio_capturer_win.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/remoting/host/audio_capturer_win.cc b/remoting/host/audio_capturer_win.cc index 90714ac..977bdaf 100644 --- a/remoting/host/audio_capturer_win.cc +++ b/remoting/host/audio_capturer_win.cc @@ -58,7 +58,6 @@ bool AudioCapturerWin::Start(const PacketCapturedCallback& callback) { capture_timer_.reset(new base::RepeatingTimer<AudioCapturerWin>()); HRESULT hr = S_OK; - com_initializer_.reset(new base::win::ScopedCOMInitializer()); base::win::ScopedComPtr<IMMDeviceEnumerator> mm_device_enumerator; hr = mm_device_enumerator.CreateInstance(__uuidof(MMDeviceEnumerator)); @@ -206,7 +205,6 @@ void AudioCapturerWin::Stop() { audio_client_.Release(); audio_capture_client_.Release(); wave_format_ex_.Reset(NULL); - com_initializer_.reset(); thread_checker_.DetachFromThread(); } |