summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 11:23:08 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 11:23:08 +0000
commit795cde3d24bbe37039e415c45e947be6d95b0a28 (patch)
tree2b3a401352c71730fd3e90d7ac4db774077b7283 /media
parentc567b48d1af4239266f99c7c79611f07723b2704 (diff)
downloadchromium_src-795cde3d24bbe37039e415c45e947be6d95b0a28.zip
chromium_src-795cde3d24bbe37039e415c45e947be6d95b0a28.tar.gz
chromium_src-795cde3d24bbe37039e415c45e947be6d95b0a28.tar.bz2
Add yasm and ffmpeg into the build tree for linux.
BUG=22307 TEST=builds correctly, and an html5 video runs. Review URL: http://codereview.chromium.org/300013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/base/media_posix.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/media/base/media_posix.cc b/media/base/media_posix.cc
index 2f1af81..9b1035c 100644
--- a/media/base/media_posix.cc
+++ b/media/base/media_posix.cc
@@ -21,14 +21,19 @@ namespace {
#if defined(OS_MACOSX)
#define DSO_NAME(MODULE, VERSION) ("lib" MODULE "." #VERSION ".dylib")
+const FilePath::CharType sumo_name[] =
+ FILE_PATH_LITERAL("libffmpegsumo.dylib");
#elif defined(OS_POSIX)
#define DSO_NAME(MODULE, VERSION) ("lib" MODULE ".so." #VERSION)
+const FilePath::CharType sumo_name[] = FILE_PATH_LITERAL("libffmpegsumo.so");
#else
#error "Do not know how to construct DSO name for this OS."
#endif
// Retrieves the DSOName for the given key.
std::string GetDSOName(tp_ffmpeg::StubModules stub_key) {
+ // TODO(ajwong): Remove this once mac is migrated. Either that, or have GYP
+ // set a constant that we can switch implementations based off of.
switch (stub_key) {
case tp_ffmpeg::kModuleAvcodec52:
return FILE_PATH_LITERAL(DSO_NAME("avcodec", 52));
@@ -51,6 +56,11 @@ bool InitializeMediaLibrary(const FilePath& module_dir) {
tp_ffmpeg::StubPathMap paths;
for (int i = 0; i < static_cast<int>(tp_ffmpeg::kNumStubModules); ++i) {
tp_ffmpeg::StubModules module = static_cast<tp_ffmpeg::StubModules>(i);
+
+ // Add the sumo library first so it takes precedence.
+ paths[module].push_back(module_dir.Append(sumo_name).value());
+
+ // Add the more specific FFmpeg library name.
FilePath path = module_dir.Append(GetDSOName(module));
paths[module].push_back(path.value());
}