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
3 // found in the LICENSE file.
5 #include "media/base/win/mf_initializer.h"
9 #include "base/lazy_instance.h"
10 #include "base/macros.h"
16 // LazyInstance to initialize the Media Foundation Library.
20 : mf_started_(MFStartup(MF_VERSION
, MFSTARTUP_LITE
) == S_OK
) {}
28 const bool mf_started_
;
30 DISALLOW_COPY_AND_ASSIGN(MFInitializer
);
33 base::LazyInstance
<MFInitializer
> g_mf_initializer
= LAZY_INSTANCE_INITIALIZER
;
37 void InitializeMediaFoundation() {
38 g_mf_initializer
.Get();