diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-30 02:10:45 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-30 02:10:45 +0000 |
commit | 09b91f40ffe39969f5d46bc407a5688ad51b2cb0 (patch) | |
tree | 2805becdfb39c299ae7f3e80e9b7c4cc117888f5 /media | |
parent | 4fbba5a5375b1f6327e25ecdba4794e34ff43e68 (diff) | |
download | chromium_src-09b91f40ffe39969f5d46bc407a5688ad51b2cb0.zip chromium_src-09b91f40ffe39969f5d46bc407a5688ad51b2cb0.tar.gz chromium_src-09b91f40ffe39969f5d46bc407a5688ad51b2cb0.tar.bz2 |
Add comment to media bench clarifying library initialization.
Review URL: http://codereview.chromium.org/99081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/bench/bench.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/media/bench/bench.cc b/media/bench/bench.cc index 3494600..42deacf 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])); |