diff options
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])); |