OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_WIN_MF_INITIALIZER_H_ | 5 #ifndef MEDIA_BASE_WIN_MF_INITIALIZER_H_ |
6 #define MEDIA_BASE_WIN_MF_INITIALIZER_H_ | 6 #define MEDIA_BASE_WIN_MF_INITIALIZER_H_ |
7 | 7 |
8 #include "media/base/win/mf_initializer_export.h" | 8 #include "media/base/win/mf_initializer_export.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
11 | 11 |
12 // Makes sure MFStartup() is called exactly once. | 12 // Makes sure MFStartup() is called exactly once. Returns true if Media |
13 MF_INITIALIZER_EXPORT void InitializeMediaFoundation(); | 13 // Foundation is available and has been initialized successfully. Note that it |
| 14 // is expected to return false on an "N" edition of Windows, see |
| 15 // https://en.wikipedia.org/wiki/Windows_7_editions#Special-purpose_editions. |
| 16 MF_INITIALIZER_EXPORT bool InitializeMediaFoundation(); |
14 | 17 |
15 } // namespace media | 18 } // namespace media |
16 | 19 |
17 #endif // MEDIA_BASE_WIN_MF_INITIALIZER_H_ | 20 #endif // MEDIA_BASE_WIN_MF_INITIALIZER_H_ |
OLD | NEW |