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

Unified Diff: media/base/win/mf_initializer.h

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
« no previous file with comments | « no previous file | media/base/win/mf_initializer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/win/mf_initializer.h
diff --git a/media/base/win/mf_initializer.h b/media/base/win/mf_initializer.h
index 6a1b6cafd230af7ec208cbf9e2a8bd2a52101898..982cdc6c01b34b17cf1144bd1527e4430aa24d4b 100644
--- a/media/base/win/mf_initializer.h
+++ b/media/base/win/mf_initializer.h
@@ -9,8 +9,11 @@
namespace media {
-// Makes sure MFStartup() is called exactly once.
-MF_INITIALIZER_EXPORT void InitializeMediaFoundation();
+// Makes sure MFStartup() is called exactly once. Returns true if Media
+// Foundation is available and has been initialized successfully. Note that it
+// is expected to return false on an "N" edition of Windows, see
+// https://en.wikipedia.org/wiki/Windows_7_editions#Special-purpose_editions.
+MF_INITIALIZER_EXPORT bool InitializeMediaFoundation();
} // namespace media
« no previous file with comments | « no previous file | media/base/win/mf_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698