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

Unified Diff: media/tools/media_bench/media_bench.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 | « media/test/ffmpeg_tests/ffmpeg_tests.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/media_bench/media_bench.cc
===================================================================
--- media/tools/media_bench/media_bench.cc (revision 50665)
+++ media/tools/media_bench/media_bench.cc (working copy)
@@ -49,8 +49,14 @@
} // namespace switches
#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.
@@ -209,7 +215,7 @@
}
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
@@ -554,7 +560,7 @@
*log_out << " MD5 Hash: " << MD5DigestToBase16(digest)
<< " " << in_path << std::endl;
}
-#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 | « media/test/ffmpeg_tests/ffmpeg_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698