Index: media/gpu/media_foundation_video_encode_accelerator_win.cc |
diff --git a/media/gpu/media_foundation_video_encode_accelerator_win.cc b/media/gpu/media_foundation_video_encode_accelerator_win.cc |
index c70e3010d724c63cebb1d4b5196d7a19437dda89..fea0fb9d4ce283a23bc315074495ad942715fc0a 100644 |
--- a/media/gpu/media_foundation_video_encode_accelerator_win.cc |
+++ b/media/gpu/media_foundation_video_encode_accelerator_win.cc |
@@ -391,7 +391,7 @@ bool MediaFoundationVideoEncodeAccelerator::InitializeInputOutputSamples() { |
} |
// Initialize output parameters. |
- hr = MFCreateMediaType(imf_output_media_type_.Receive()); |
+ hr = MFCreateMediaType(imf_output_media_type_.GetAddressOf()); |
RETURN_ON_HR_FAILURE(hr, "Couldn't create media type", false); |
hr = imf_output_media_type_->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Video); |
RETURN_ON_HR_FAILURE(hr, "Couldn't set media type", false); |
@@ -417,7 +417,7 @@ bool MediaFoundationVideoEncodeAccelerator::InitializeInputOutputSamples() { |
RETURN_ON_HR_FAILURE(hr, "Couldn't set output media type", false); |
// Initialize input parameters. |
- hr = MFCreateMediaType(imf_input_media_type_.Receive()); |
+ hr = MFCreateMediaType(imf_input_media_type_.GetAddressOf()); |
RETURN_ON_HR_FAILURE(hr, "Couldn't create media type", false); |
hr = imf_input_media_type_->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Video); |
RETURN_ON_HR_FAILURE(hr, "Couldn't set media type", false); |
@@ -444,7 +444,7 @@ bool MediaFoundationVideoEncodeAccelerator::SetEncoderModes() { |
RETURN_ON_FAILURE((encoder_.Get() != nullptr), |
"No HW encoder instance created", false); |
- HRESULT hr = encoder_.CopyTo(codec_api_.Receive()); |
+ HRESULT hr = encoder_.CopyTo(codec_api_.GetAddressOf()); |
RETURN_ON_HR_FAILURE(hr, "Couldn't get ICodecAPI", false); |
VARIANT var; |
var.vt = VT_UI4; |
@@ -500,7 +500,7 @@ void MediaFoundationVideoEncodeAccelerator::EncodeTask( |
DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); |
base::win::ScopedComPtr<IMFMediaBuffer> input_buffer; |
- input_sample_->GetBufferByIndex(0, input_buffer.Receive()); |
+ input_sample_->GetBufferByIndex(0, input_buffer.GetAddressOf()); |
{ |
MediaBufferScopedPointer scoped_buffer(input_buffer.Get()); |
@@ -579,7 +579,7 @@ void MediaFoundationVideoEncodeAccelerator::ProcessOutput() { |
DVLOG(3) << "Got encoded data " << hr; |
base::win::ScopedComPtr<IMFMediaBuffer> output_buffer; |
- hr = output_sample_->GetBufferByIndex(0, output_buffer.Receive()); |
+ hr = output_sample_->GetBufferByIndex(0, output_buffer.GetAddressOf()); |
RETURN_ON_HR_FAILURE(hr, "Couldn't get buffer by index", ); |
DWORD size = 0; |
hr = output_buffer->GetCurrentLength(&size); |