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

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

Issue 2870263002: Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf (Closed)
Patch Set: Rebase to 2a6f440 Created 3 years, 7 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/core_audio_util_win_unittest.cc ('k') | media/base/win/mf_helpers.cc » ('j') | 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 b3332041b68e4bee85e6de6d2a06e3cb0b919912..894b61cc7df97e4c5e957804e53f71f326687893 100644
--- a/media/audio/win/device_enumeration_win.cc
+++ b/media/audio/win/device_enumeration_win.cc
@@ -41,7 +41,7 @@ static bool GetDeviceNamesWinImpl(EDataFlow data_flow,
// This method will succeed even if all devices are disabled.
ScopedComPtr<IMMDeviceCollection> collection;
hr = enumerator->EnumAudioEndpoints(data_flow, DEVICE_STATE_ACTIVE,
- collection.Receive());
+ collection.GetAddressOf());
if (FAILED(hr))
return false;
@@ -59,7 +59,7 @@ static bool GetDeviceNamesWinImpl(EDataFlow data_flow,
// Retrieve unique name of endpoint device.
// Example: "{0.0.1.00000000}.{8db6020f-18e3-4f25-b6f5-7726c9122574}".
ScopedComPtr<IMMDevice> audio_device;
- hr = collection->Item(i, audio_device.Receive());
+ hr = collection->Item(i, audio_device.GetAddressOf());
if (FAILED(hr))
continue;
@@ -72,7 +72,7 @@ static bool GetDeviceNamesWinImpl(EDataFlow data_flow,
// Retrieve user-friendly name of endpoint device.
// Example: "Microphone (Realtek High Definition Audio)".
ScopedComPtr<IPropertyStore> properties;
- hr = audio_device->OpenPropertyStore(STGM_READ, properties.Receive());
+ hr = audio_device->OpenPropertyStore(STGM_READ, properties.GetAddressOf());
if (SUCCEEDED(hr)) {
base::win::ScopedPropVariant friendly_name;
hr = properties->GetValue(PKEY_Device_FriendlyName,
« no previous file with comments | « media/audio/win/core_audio_util_win_unittest.cc ('k') | media/base/win/mf_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698