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>()); |