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

Unified Diff: media/test/ffmpeg_tests/ffmpeg_tests.cc

Issue 2811026: media_Bench and ffmpeg_tests disable exception handler by default... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/tools/media_bench/media_bench.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/ffmpeg_tests/ffmpeg_tests.cc
===================================================================
--- media/test/ffmpeg_tests/ffmpeg_tests.cc (revision 50665)
+++ media/test/ffmpeg_tests/ffmpeg_tests.cc (working copy)
@@ -30,8 +30,14 @@
#endif
#if defined(OS_WIN)
+
+// Enable to build with exception handler
+//#define ENABLE_WINDOWS_EXCEPTIONS 1
+
+#ifdef ENABLE_WINDOWS_EXCEPTIONS
// warning: disable warning about exception handler.
#pragma warning(disable:4509)
+#endif
// Thread priorities to make benchmark more stable.
@@ -101,7 +107,7 @@
bool hash_md5 = false;
std::ostream* log_out = &std::cout;
-#if defined(OS_WIN)
+#if defined(ENABLE_WINDOWS_EXCEPTIONS)
// Catch exceptions so this tool can be used in automated testing.
__try {
#endif
@@ -475,7 +481,7 @@
<< " " << in_path << std::endl;
}
#endif // SHOW_VERBOSE
-#if defined(OS_WIN)
+#if defined(ENABLE_WINDOWS_EXCEPTIONS)
} __except(EXCEPTION_EXECUTE_HANDLER) {
*log_out << " Exception:" << std::setw(11) << GetExceptionCode()
<< " " << in_path << std::endl;
« no previous file with comments | « no previous file | media/tools/media_bench/media_bench.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698