]>
Commit | Line | Data |
---|---|---|
a72846db ER |
1 | Index: tools/compile_test/compile_test.py |
2 | diff --git a/tools/compile_test/compile_test.py b/tools/compile_test/compile_test.py | |
3 | index 79371a1fd05d2e03e098340527fc897faadad54c..bbda4abfe54f327aabede26f400bebd5e1376d82 100755 | |
4 | --- a/tools/compile_test/compile_test.py | |
5 | +++ b/tools/compile_test/compile_test.py | |
6 | @@ -30,7 +30,9 @@ def DoMain(argv): | |
7 | if not options.code: | |
8 | parser.error('Missing required --code switch.') | |
9 | ||
10 | - cxx = os.environ.get('CXX', 'g++') | |
11 | + # The environment variable might expand to a string with spaces, | |
12 | + # e.g. "ccache g++". Convert it to a list suitable for argv. | |
13 | + cxx = os.environ.get('CXX', 'g++').split() | |
14 | ||
15 | tmpdir = tempfile.mkdtemp() | |
16 | try: | |
17 | @@ -41,7 +41,7 @@ | |
18 | ||
2e9c6158 ER |
19 | o_path = os.path.join(tmpdir, 'test.o') |
20 | ||
a72846db ER |
21 | - cxx_popen = subprocess.Popen([cxx, cxx_path, '-o', o_path, '-c'], |
22 | + cxx_popen = subprocess.Popen(cxx + [cxx_path, '-o', o_path, '-c'], | |
2e9c6158 ER |
23 | stdout=subprocess.PIPE, |
24 | stderr=subprocess.PIPE) | |
25 | cxx_stdout, cxx_stderr = cxx_popen.communicate() | |
108c5f7c ER |
26 | diff --git a/media/filters/ffmpeg_glue.h b/media/filters/ffmpeg_glue.h |
27 | index 17241b9..8a92312 100644 | |
28 | --- a/media/filters/ffmpeg_glue.h | |
29 | +++ b/media/filters/ffmpeg_glue.h | |
30 | @@ -28,9 +28,9 @@ | |
31 | #include "base/basictypes.h" | |
32 | #include "base/memory/scoped_ptr.h" | |
33 | #include "media/base/media_export.h" | |
34 | +#include "media/ffmpeg/ffmpeg_common.h" | |
35 | ||
36 | struct AVFormatContext; | |
37 | -struct AVIOContext; | |
38 | ||
39 | namespace media { | |
40 | ||
2e9c6158 ER |
41 | diff --git a/media/media.gyp b/media/media.gyp |
42 | index df217d2..fde3830 100644 | |
43 | --- a/media/media.gyp | |
44 | +++ b/media/media.gyp | |
45 | @@ -363,6 +363,9 @@ | |
108c5f7c ER |
46 | 'dependencies': [ |
47 | '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | |
48 | ], | |
49 | + 'export_dependent_settings': [ | |
50 | + '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | |
51 | + ], | |
40a3ea76 | 52 | }, { # media_use_ffmpeg == 0 |
108c5f7c ER |
53 | # Exclude the sources that depend on ffmpeg. |
54 | 'sources!': [ | |
b0ea35e3 ER |
55 | --- a/media/ffmpeg/ffmpeg_common.cc.orig 2013-01-17 00:07:51.635057013 +0000 |
56 | +++ b/media/ffmpeg/ffmpeg_common.cc 2013-01-17 00:15:50.867406811 +0000 | |
57 | @@ -10,6 +10,8 @@ | |
58 | #include "media/base/video_frame.h" | |
59 | #include "media/base/video_util.h" | |
60 | ||
61 | +#undef SampleFormat | |
62 | + | |
63 | namespace media { | |
64 | ||
65 | // Why FF_INPUT_BUFFER_PADDING_SIZE? FFmpeg assumes all input buffers are |