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

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

Issue 1149203002: Extract re-usable InitializeMediaFoundation() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No need to ever mutate member Created 5 years, 7 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/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_

Powered by Google App Engine
This is Rietveld 408576698