Index: media/test/ffmpeg_tests/ffmpeg_tests.cc |
diff --git a/media/test/ffmpeg_tests/ffmpeg_tests.cc b/media/test/ffmpeg_tests/ffmpeg_tests.cc |
index 5745fe955458a08a2647a6f8d3491304d2101104..4eff9a3ba19e65d3ae4b1972c0469c52681154e4 100644 |
--- a/media/test/ffmpeg_tests/ffmpeg_tests.cc |
+++ b/media/test/ffmpeg_tests/ffmpeg_tests.cc |
@@ -81,7 +81,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) { |
std::cerr << "Unable to initialize the media library."; |
return 1; |
} |
@@ -499,4 +500,3 @@ int main(int argc, const char** argv) { |
CommandLine::Reset(); |
return 0; |
} |
- |