Index: media/bench/bench.cc |
diff --git a/media/bench/bench.cc b/media/bench/bench.cc |
index 3494600c35909348307c2d31f894a6be99c9f43c..42deacf20aa152129acaa632e2ee446f346e07b9 100644 |
--- a/media/bench/bench.cc |
+++ b/media/bench/bench.cc |
@@ -48,7 +48,13 @@ int main(int argc, const char** argv) { |
return 1; |
} |
- media::InitializeMediaLibrary(FilePath()); |
+ // Initialize our media library (try loading DLLs, etc.) before continuing. |
+ // We use an empty file path as the parameter to force searching of the |
+ // default locations for necessary DLLs and DSOs. |
+ if (media::InitializeMediaLibrary(FilePath()) == false) { |
+ std::cerr << "Unable to initialize the media library."; |
+ return 1; |
+ } |
// Retrieve command line options. |
std::string path(WideToUTF8(filenames[0])); |