From d14375b803cd6fb4dee1bb528757721f4d5defe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 19 Mar 2008 19:14:48 +0000 Subject: [PATCH] * turn tracing off in OpenDMLFile as well * rename tracing define in StartIndex git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24477 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../avi_reader/libOpenDML/OpenDMLFile.cpp | 2 +- .../avi_reader/libOpenDML/StandardIndex.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/add-ons/media/plugins/avi_reader/libOpenDML/OpenDMLFile.cpp b/src/add-ons/media/plugins/avi_reader/libOpenDML/OpenDMLFile.cpp index 46d50889d3..d2638b4aa2 100644 --- a/src/add-ons/media/plugins/avi_reader/libOpenDML/OpenDMLFile.cpp +++ b/src/add-ons/media/plugins/avi_reader/libOpenDML/OpenDMLFile.cpp @@ -28,7 +28,7 @@ #include "StandardIndex.h" #include "FallbackIndex.h" -#define TRACE_ODML_FILE +//#define TRACE_ODML_FILE #ifdef TRACE_ODML_FILE #define TRACE printf #else diff --git a/src/add-ons/media/plugins/avi_reader/libOpenDML/StandardIndex.cpp b/src/add-ons/media/plugins/avi_reader/libOpenDML/StandardIndex.cpp index 9818e61b59..f320e2a587 100644 --- a/src/add-ons/media/plugins/avi_reader/libOpenDML/StandardIndex.cpp +++ b/src/add-ons/media/plugins/avi_reader/libOpenDML/StandardIndex.cpp @@ -33,8 +33,8 @@ #include -//#define TRACE_ODML_PARSER -#ifdef TRACE_ODML_PARSER +//#define TRACE_START_INDEX +#ifdef TRACE_START_INDEX #define TRACE printf #else #define TRACE(a...) @@ -77,7 +77,7 @@ StandardIndex::Init() TRACE("StandardIndex::Init: seekHintsStride %lu\n", seekHintsStride); TRACE("StandardIndex::Init: seekHintsMax %lu\n", seekHintsMax); -#ifdef TRACE_ODML_PARSER +#ifdef TRACE_START_INDEX { BStopWatch w("StandardIndex::Init: malloc"); #endif @@ -96,7 +96,7 @@ StandardIndex::Init() ERROR("libOpenDML: StandardIndex::Init out of memory\n"); return B_NO_MEMORY; } -#ifdef TRACE_ODML_PARSER +#ifdef TRACE_START_INDEX } { BStopWatch w("StandardIndex::Init: file read"); #endif @@ -108,7 +108,7 @@ StandardIndex::Init() fIndex = NULL; return B_IO_ERROR; } -#ifdef TRACE_ODML_PARSER +#ifdef TRACE_START_INDEX } //DumpIndex(); #endif @@ -125,7 +125,7 @@ StandardIndex::Init() fStreamData[i].seek_hints_next = seekHintsStride; } -#ifdef TRACE_ODML_PARSER +#ifdef TRACE_START_INDEX { BStopWatch w("StandardIndex::Init: scan index"); #endif @@ -156,7 +156,7 @@ StandardIndex::Init() fStreamData[stream].keyframe_count = keyframe_count; fStreamData[stream].seek_hints_count = seek_hints_count; } -#ifdef TRACE_ODML_PARSER +#ifdef TRACE_START_INDEX } for (int i = 0; i < fStreamCount; i++) { @@ -172,7 +172,7 @@ StandardIndex::Init() fStreamData[i].seek_hints[j].stream_pos); } } -#endif // TRACE_ODML_PARSER +#endif // TRACE_START_INDEX return B_OK; }