Added proper #ifdef DEBUG around debug code.

This commit is contained in:
Moritz Bunkus 2003-09-01 12:17:33 +00:00
parent 68ebea236b
commit 12155c0557
2 changed files with 4 additions and 0 deletions

View File

@ -680,8 +680,10 @@ KaxChapters *parse_xml_chapters(mm_text_io_c *in, int64_t min_tc,
delete pdata->parents;
safefree(pdata);
#ifdef DEBUG
if ((chapters != NULL) && (verbose > 1))
debug_c::dump_elements(chapters, 0);
#endif
return chapters;
}

View File

@ -136,8 +136,10 @@ void extract_chapters(const char *file_name, bool chapter_format_simple) {
KaxChapters &chapters = *static_cast<KaxChapters *>(l1);
chapters.Read(*es, KaxChapters::ClassInfos.Context, upper_lvl_el, l2,
true);
#ifdef DEBUG
if (verbose > 0)
debug_c::dump_elements(&chapters, 0);
#endif
if (!chapters_extracted && !chapter_format_simple) {
mxinfo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<Chapters>\n");