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

Unified Diff: media/gpu/media_foundation_video_encode_accelerator_win.cc

Issue 2792383003: Rename ScopedComPtr::Release() to ScopedComPtr::Reset() (Closed)
Patch Set: Fix New Callers Created 3 years, 8 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/gpu/dxva_video_decode_accelerator_win.cc ('k') | remoting/host/audio_capturer_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 08772c0728e7c2c6783320e9a1dc7ff0fdd66611..6723aa7a0b9a3202291bab04d5e8ce56312f48e9 100644
--- a/media/gpu/media_foundation_video_encode_accelerator_win.cc
+++ b/media/gpu/media_foundation_video_encode_accelerator_win.cc
@@ -694,12 +694,12 @@ void MediaFoundationVideoEncodeAccelerator::DestroyTask() {
}
void MediaFoundationVideoEncodeAccelerator::ReleaseEncoderResources() {
- encoder_.Release();
- codec_api_.Release();
- imf_input_media_type_.Release();
- imf_output_media_type_.Release();
- input_sample_.Release();
- output_sample_.Release();
+ encoder_.Reset();
+ codec_api_.Reset();
+ imf_input_media_type_.Reset();
+ imf_output_media_type_.Reset();
+ input_sample_.Reset();
+ output_sample_.Reset();
}
} // namespace content
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | remoting/host/audio_capturer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698