Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: media/bench/bench.cc

Issue 99081: Add comment to media bench clarifying library initialization. (Closed)
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698