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

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

Issue 10744002: Fix COM initialization on media thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/device_enumeration_win.cc
diff --git a/media/audio/win/device_enumeration_win.cc b/media/audio/win/device_enumeration_win.cc
index d2269869be58d668dbfa61f2cb54a6dc9cc0fe66..c93a16bebcf2d241be7a8e0aac1e2f98e5dc6160 100644
--- a/media/audio/win/device_enumeration_win.cc
+++ b/media/audio/win/device_enumeration_win.cc
@@ -33,6 +33,7 @@ bool GetInputDeviceNamesWin(AudioDeviceNames* device_names) {
CLSCTX_INPROC_SERVER,
__uuidof(IMMDeviceEnumerator),
enumerator.ReceiveVoid());
+ DCHECK_NE(hr, CO_E_NOTINITIALIZED);
if (FAILED(hr)) {
LOG(WARNING) << "Failed to create IMMDeviceEnumerator: " << std::hex << hr;
return false;
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698