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

Unified Diff: media/tools/media_bench/media_bench.cc

Issue 6537022: Move media library path resolution into Chrome path provider. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: And again, this time with working tests... Created 9 years, 10 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
Index: media/tools/media_bench/media_bench.cc
diff --git a/media/tools/media_bench/media_bench.cc b/media/tools/media_bench/media_bench.cc
index 1bf51f2d8ab57276b5c72da34e080b0ad4185b1a..c7e7430623182e765a50844f4950141917b1de2a 100644
--- a/media/tools/media_bench/media_bench.cc
+++ b/media/tools/media_bench/media_bench.cc
@@ -122,7 +122,8 @@ int main(int argc, const char** argv) {
// 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) {
+ media::InitializeMediaLibrary(FilePath());
+ if (media::IsMediaLibraryInitialized() == false) {
awong 2011/02/25 02:41:59 if (!media::IsMediaLibraryInitialized()) {
std::cerr << "Unable to initialize the media library.";
return 1;
}

Powered by Google App Engine
This is Rietveld 408576698