| Index: media/tools/omx_test/omx_test.cc
|
| diff --git a/media/tools/omx_test/omx_test.cc b/media/tools/omx_test/omx_test.cc
|
| index 24cf4ccfe3fe244ab7df348ba5cb0ec72315e908..e5190ad293305763315ab6d9e0be59efd0b708ec 100644
|
| --- a/media/tools/omx_test/omx_test.cc
|
| +++ b/media/tools/omx_test/omx_test.cc
|
| @@ -301,7 +301,8 @@ static bool PrepareEncodeFormats(AVStream *av_stream) {
|
| }
|
|
|
| static bool InitFFmpeg() {
|
| - if (!media::InitializeMediaLibrary(FilePath()))
|
| + media::InitializeMediaLibrary(FilePath());
|
| + if (!media::IsMediaLibraryInitialized())
|
| return false;
|
| avcodec_init();
|
| av_register_all();
|
|
|