Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Issue 2811026: media_Bench and ffmpeg_tests disable exception handler by default... (Closed)

Created:
10 years, 6 months ago by fbarchard
Modified:
9 years, 7 months ago
CC:
chromium-reviews, scherkus (not reviewing), pam+watch_chromium.org, awong, Alpha Left Google
Visibility:
Public.

Description

media_Bench and ffmpeg_tests disable exception handler by default BUG=47307 TEST=no change in normal behavior. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50684

Patch Set 1 #

Total comments: 3

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M media/test/ffmpeg_tests/ffmpeg_tests.cc View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M media/tools/media_bench/media_bench.cc View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
fbarchard
Disable exception handling by default. user must manually reenable it to build tools that capture ...
10 years, 6 months ago (2010-06-23 18:36:17 UTC) #1
scherkus (not reviewing)
LGTM but what's the cause for the change?
10 years, 6 months ago (2010-06-23 18:48:26 UTC) #2
Victor Wang
http://codereview.chromium.org/2811026/diff/1/2 File media/test/ffmpeg_tests/ffmpeg_tests.cc (right): http://codereview.chromium.org/2811026/diff/1/2#newcode38 media/test/ffmpeg_tests/ffmpeg_tests.cc:38: #pragma warning(disable:4509) Think this warning is also related to ...
10 years, 6 months ago (2010-06-23 20:42:41 UTC) #3
fbarchard
Remove pragma when not using exception handling. http://codereview.chromium.org/2811026/diff/1/2 File media/test/ffmpeg_tests/ffmpeg_tests.cc (right): http://codereview.chromium.org/2811026/diff/1/2#newcode38 media/test/ffmpeg_tests/ffmpeg_tests.cc:38: #pragma warning(disable:4509) ...
10 years, 6 months ago (2010-06-23 22:36:12 UTC) #4
Victor Wang
http://codereview.chromium.org/2811026/diff/1/2 File media/test/ffmpeg_tests/ffmpeg_tests.cc (right): http://codereview.chromium.org/2811026/diff/1/2#newcode38 media/test/ffmpeg_tests/ffmpeg_tests.cc:38: #pragma warning(disable:4509) On 2010/06/23 22:36:12, fbarchard wrote: > Which ...
10 years, 6 months ago (2010-06-23 22:40:51 UTC) #5
fbarchard
I'm using 2008, so its possible the warning number changed. Will the change as is, ...
10 years, 6 months ago (2010-06-23 23:20:12 UTC) #6
Victor Wang
On 2010/06/23 23:20:12, fbarchard wrote: > I'm using 2008, so its possible the warning number ...
10 years, 6 months ago (2010-06-23 23:24:18 UTC) #7
fbarchard
Yes, I'm able to produce an error if I hand compile it c:\src\chromium\src\media\test\ffmpeg_tests>cl /EHsc /DENABLE_WINDOWS_EXCEPTIONS=1 ...
10 years, 6 months ago (2010-06-24 00:01:46 UTC) #8
Victor Wang
That's what I got if I enable c++ exception for multi dll build... On 2010/06/24 ...
10 years, 6 months ago (2010-06-24 00:06:24 UTC) #9
fbarchard
Regular chromium builds work though.
10 years, 6 months ago (2010-06-24 00:36:57 UTC) #10
Victor Wang
10 years, 6 months ago (2010-06-24 00:49:27 UTC) #11
On 2010/06/24 00:36:57, fbarchard wrote:
> Regular chromium builds work though.

The current chromium build (linked static libraries) disables c++ exception. I
am working on multi dll chromium build and enable the c++ exception
(http://src.chromium.org/viewvc/chrome?view=rev&revision=50362), so this will
fail with multi dll version once we enable it. I think it would be ideal to
refactor the code so it compiles without error (c2712) or warning (c4509) in
both cases (c++ exception enabled or disabled). Of course, disabling __try like
what you did also works if you think it is not critical to have them for
multi-dll version.

Powered by Google App Engine
This is Rietveld 408576698