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

Unified Diff: media/gpu/dxva_video_decode_accelerator_win.cc

Issue 2735783002: Stop assuming anything about result of MFStartup() (Closed)
Patch Set: Mention "N" edition Created 3 years, 9 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/gpu/dxva_video_decode_accelerator_win.cc
diff --git a/media/gpu/dxva_video_decode_accelerator_win.cc b/media/gpu/dxva_video_decode_accelerator_win.cc
index 003689c8bf3fda306b6c42c431e424d2f56e5964..3477df9a602af1c22bf5fb3a700dc2d12d4c6115 100644
--- a/media/gpu/dxva_video_decode_accelerator_win.cc
+++ b/media/gpu/dxva_video_decode_accelerator_win.cc
@@ -607,7 +607,9 @@ bool DXVAVideoDecodeAccelerator::Initialize(const Config& config,
"Initialize: invalid state: " << state,
ILLEGAL_STATE, false);
- InitializeMediaFoundation();
+ RETURN_AND_NOTIFY_ON_FAILURE(InitializeMediaFoundation(),
+ "Could not initialize Media Foundartion",
+ PLATFORM_FAILURE, false);
config_ = config;

Powered by Google App Engine
This is Rietveld 408576698