| Index: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
|
| diff --git a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
|
| index 39199de7f2a6bb90abab596784961a00982ff1d5..d49b5e84abc717a580ba2c139fee3fafff9f4add 100644
|
| --- a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
|
| +++ b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
|
| @@ -46,25 +46,17 @@ MSVC_PUSH_DISABLE_WARNING(4244);
|
| MSVC_POP_WARNING();
|
| } // extern "C"
|
|
|
| -// TODO(tomfinegan): When COMPONENT_BUILD is not defined an AtExitManager must
|
| -// exist before the call to InitializeFFmpegLibraries(). This should no longer
|
| -// be required after http://crbug.com/91970 because we'll be able to get rid of
|
| -// InitializeFFmpegLibraries().
|
| #if !defined COMPONENT_BUILD
|
| static base::AtExitManager g_at_exit_manager;
|
| #endif
|
|
|
| -// TODO(tomfinegan): InitializeFFmpegLibraries() and |g_cdm_module_initialized|
|
| -// are required for running in the sandbox, and should no longer be required
|
| -// after http://crbug.com/91970 is fixed.
|
| +// Prepare media library.
|
| static bool InitializeFFmpegLibraries() {
|
| - base::FilePath file_path;
|
| - CHECK(PathService::Get(base::DIR_MODULE, &file_path));
|
| - CHECK(media::InitializeMediaLibrary(file_path));
|
| + media::InitializeMediaLibrary();
|
| return true;
|
| }
|
| -
|
| static bool g_ffmpeg_lib_initialized = InitializeFFmpegLibraries();
|
| +
|
| #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER
|
|
|
| const char kClearKeyCdmVersion[] = "0.1.0.1";
|
| @@ -232,7 +224,6 @@ class ScopedResetter {
|
|
|
| void INITIALIZE_CDM_MODULE() {
|
| #if defined(CLEAR_KEY_CDM_USE_FFMPEG_DECODER)
|
| - DVLOG(2) << "FFmpeg libraries initialized: " << g_ffmpeg_lib_initialized;
|
| av_register_all();
|
| #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER
|
| }
|
|
|