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 050dfb77043fa5e3fbaf2f141f95563166737f7e..08772c0728e7c2c6783320e9a1dc7ff0fdd66611 100644 |
--- a/media/gpu/media_foundation_video_encode_accelerator_win.cc |
+++ b/media/gpu/media_foundation_video_encode_accelerator_win.cc |
@@ -337,7 +337,8 @@ bool MediaFoundationVideoEncodeAccelerator::CreateHardwareEncoderMFT() { |
} |
} |
- InitializeMediaFoundation(); |
+ if (!InitializeMediaFoundation()) |
+ return false; |
uint32_t flags = MFT_ENUM_FLAG_HARDWARE | MFT_ENUM_FLAG_SORTANDFILTER; |
MFT_REGISTER_TYPE_INFO input_info; |