Index: media/base/media.h |
diff --git a/media/base/media.h b/media/base/media.h |
index 3d1a83a2dda2ada638191cb36a5725d3345c2d08..6bbad4cbbb9ec9caa484c50c240091c41e1de712 100644 |
--- a/media/base/media.h |
+++ b/media/base/media.h |
@@ -13,13 +13,22 @@ class FilePath; |
namespace media { |
// Attempts to initialize the media library (loading DLLs, DSOs, etc.). |
+// |
// If |module_dir| is the emptry string, then the system default library paths |
// are searched for the dynamic libraries. If a |module_dir| is provided, then |
// only the specified |module_dir| will be searched for the dynamic libraries. |
// |
+// If multiple initializations are attempted with different |module_dir|s |
+// specified then the first one to succeed remains effective for the lifetime |
+// of the process. |
+// |
// Returns true if everything was successfully initialized, false otherwise. |
bool InitializeMediaLibrary(const FilePath& module_dir); |
+// Use this if you need to check whether the media library is initialized |
+// for the this process, without actually trying to initialize it. |
+bool IsMediaLibraryInitialized(); |
+ |
// Attempts to initialize OpenMAX library. |
// |
// Returns true if OpenMAX was successfully initialized and loaded. |