OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/base/media.h" | 5 #include "media/base/media.h" |
| 6 |
6 #include "base/logging.h" | 7 #include "base/logging.h" |
7 | 8 |
| 9 // The media library is not used on iOS. Simple stubs to allow for compilation |
| 10 // without !defined(OS_IOS) blocks. |
| 11 |
8 namespace media { | 12 namespace media { |
9 | 13 |
10 bool InitializeMediaLibrary(const FilePath& module_dir) { | 14 bool InitializeMediaLibrary(const FilePath& module_dir) { |
11 // Android doesn't require any additional media libraries. | |
12 return true; | 15 return true; |
13 } | 16 } |
14 | 17 |
15 void InitializeMediaLibraryForTesting() {} | 18 void InitializeMediaLibraryForTesting() { |
| 19 } |
16 | 20 |
17 bool IsMediaLibraryInitialized() { | 21 bool IsMediaLibraryInitialized() { |
18 return true; | 22 return true; |
19 } | 23 } |
20 | 24 |
21 } // namespace media | 25 } // namespace media |
OLD | NEW |