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

Unified Diff: media/base/win/mf_helpers.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
Index: media/base/win/mf_helpers.cc
diff --git a/media/base/win/mf_helpers.cc b/media/base/win/mf_helpers.cc
index b04ef674987ec9b8f2de25c5105b285e999cf4f2..9322b0cc41b7b773565e846aa9215ff957479286 100644
--- a/media/base/win/mf_helpers.cc
+++ b/media/base/win/mf_helpers.cc
@@ -19,7 +19,7 @@ base::win::ScopedComPtr<IMFSample> CreateEmptySampleWithBuffer(
CHECK_GT(buffer_length, 0U);
base::win::ScopedComPtr<IMFSample> sample;
- HRESULT hr = MFCreateSample(sample.Receive());
+ HRESULT hr = MFCreateSample(sample.GetAddressOf());
RETURN_ON_HR_FAILURE(hr, "MFCreateSample failed",
base::win::ScopedComPtr<IMFSample>());
@@ -27,10 +27,10 @@ base::win::ScopedComPtr<IMFSample> CreateEmptySampleWithBuffer(
if (align == 0) {
// Note that MFCreateMemoryBuffer is same as MFCreateAlignedMemoryBuffer
// with the align argument being 0.
- hr = MFCreateMemoryBuffer(buffer_length, buffer.Receive());
+ hr = MFCreateMemoryBuffer(buffer_length, buffer.GetAddressOf());
} else {
- hr =
- MFCreateAlignedMemoryBuffer(buffer_length, align - 1, buffer.Receive());
+ hr = MFCreateAlignedMemoryBuffer(buffer_length, align - 1,
+ buffer.GetAddressOf());
}
RETURN_ON_HR_FAILURE(hr, "Failed to create memory buffer for sample",
base::win::ScopedComPtr<IMFSample>());
« no previous file with comments | « media/audio/win/device_enumeration_win.cc ('k') | media/capture/video/win/video_capture_device_factory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698