This source file includes following definitions.
- InitializeMediaLibraryInternal
#include "media/base/media.h"
#include <windows.h>
#if defined(_WIN32_WINNT_WIN8)
#undef FACILITY_VISUALCPP
#endif
#include <delayimp.h>
#include "base/files/file_path.h"
#pragma comment(lib, "delayimp.lib")
namespace media {
namespace internal {
bool InitializeMediaLibraryInternal(const base::FilePath& module_dir) {
if (!module_dir.IsAbsolute())
return false;
static const char kFFmpegDLL[] = "ffmpegsumo.dll";
HMODULE lib = ::LoadLibraryEx(
module_dir.AppendASCII(kFFmpegDLL).value().c_str(), NULL,
LOAD_WITH_ALTERED_SEARCH_PATH);
return lib != NULL;
}
}
}