* 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
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
#include "StandardIndex.h"
|
#include "StandardIndex.h"
|
||||||
#include "FallbackIndex.h"
|
#include "FallbackIndex.h"
|
||||||
|
|
||||||
#define TRACE_ODML_FILE
|
//#define TRACE_ODML_FILE
|
||||||
#ifdef TRACE_ODML_FILE
|
#ifdef TRACE_ODML_FILE
|
||||||
#define TRACE printf
|
#define TRACE printf
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -33,8 +33,8 @@
|
|||||||
#include <StopWatch.h>
|
#include <StopWatch.h>
|
||||||
|
|
||||||
|
|
||||||
//#define TRACE_ODML_PARSER
|
//#define TRACE_START_INDEX
|
||||||
#ifdef TRACE_ODML_PARSER
|
#ifdef TRACE_START_INDEX
|
||||||
#define TRACE printf
|
#define TRACE printf
|
||||||
#else
|
#else
|
||||||
#define TRACE(a...)
|
#define TRACE(a...)
|
||||||
@@ -77,7 +77,7 @@ StandardIndex::Init()
|
|||||||
TRACE("StandardIndex::Init: seekHintsStride %lu\n", seekHintsStride);
|
TRACE("StandardIndex::Init: seekHintsStride %lu\n", seekHintsStride);
|
||||||
TRACE("StandardIndex::Init: seekHintsMax %lu\n", seekHintsMax);
|
TRACE("StandardIndex::Init: seekHintsMax %lu\n", seekHintsMax);
|
||||||
|
|
||||||
#ifdef TRACE_ODML_PARSER
|
#ifdef TRACE_START_INDEX
|
||||||
{ BStopWatch w("StandardIndex::Init: malloc");
|
{ BStopWatch w("StandardIndex::Init: malloc");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ StandardIndex::Init()
|
|||||||
ERROR("libOpenDML: StandardIndex::Init out of memory\n");
|
ERROR("libOpenDML: StandardIndex::Init out of memory\n");
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
}
|
}
|
||||||
#ifdef TRACE_ODML_PARSER
|
#ifdef TRACE_START_INDEX
|
||||||
}
|
}
|
||||||
{ BStopWatch w("StandardIndex::Init: file read");
|
{ BStopWatch w("StandardIndex::Init: file read");
|
||||||
#endif
|
#endif
|
||||||
@@ -108,7 +108,7 @@ StandardIndex::Init()
|
|||||||
fIndex = NULL;
|
fIndex = NULL;
|
||||||
return B_IO_ERROR;
|
return B_IO_ERROR;
|
||||||
}
|
}
|
||||||
#ifdef TRACE_ODML_PARSER
|
#ifdef TRACE_START_INDEX
|
||||||
}
|
}
|
||||||
//DumpIndex();
|
//DumpIndex();
|
||||||
#endif
|
#endif
|
||||||
@@ -125,7 +125,7 @@ StandardIndex::Init()
|
|||||||
fStreamData[i].seek_hints_next = seekHintsStride;
|
fStreamData[i].seek_hints_next = seekHintsStride;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TRACE_ODML_PARSER
|
#ifdef TRACE_START_INDEX
|
||||||
{ BStopWatch w("StandardIndex::Init: scan index");
|
{ BStopWatch w("StandardIndex::Init: scan index");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ StandardIndex::Init()
|
|||||||
fStreamData[stream].keyframe_count = keyframe_count;
|
fStreamData[stream].keyframe_count = keyframe_count;
|
||||||
fStreamData[stream].seek_hints_count = seek_hints_count;
|
fStreamData[stream].seek_hints_count = seek_hints_count;
|
||||||
}
|
}
|
||||||
#ifdef TRACE_ODML_PARSER
|
#ifdef TRACE_START_INDEX
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < fStreamCount; i++) {
|
for (int i = 0; i < fStreamCount; i++) {
|
||||||
@@ -172,7 +172,7 @@ StandardIndex::Init()
|
|||||||
fStreamData[i].seek_hints[j].stream_pos);
|
fStreamData[i].seek_hints[j].stream_pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // TRACE_ODML_PARSER
|
#endif // TRACE_START_INDEX
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user