Chromium Code Reviews| Index: media/base/win/mf_initializer.h |
| diff --git a/media/base/win/mf_initializer.h b/media/base/win/mf_initializer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9458d696937d1565da84720e320f805a6bed32ce |
| --- /dev/null |
| +++ b/media/base/win/mf_initializer.h |
| @@ -0,0 +1,18 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_BASE_WIN_MF_INITIALIZER_H_ |
| +#define MEDIA_BASE_WIN_MF_INITIALIZER_H_ |
| + |
| +#include "media/base/media_export.h" |
| + |
| +namespace media { |
| + |
| +// Makes sure MFStartup() is called exactly once, and that this call is paired |
| +// by a call to MFShutdown(). |
| +MEDIA_EXPORT void EnsureMediaFoundationInitialized(); |
|
sandersd (OOO until July 31)
2015/05/22 19:17:57
I note that for FFmpeg we just call the method Ini
wdzierzanowski
2015/05/25 08:43:01
Done.
|
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_BASE_WIN_MF_INITIALIZER_H_ |