mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 20:32:33 +00:00
Added proper #ifdef DEBUG around debug code.
This commit is contained in:
parent
68ebea236b
commit
12155c0557
@ -680,8 +680,10 @@ KaxChapters *parse_xml_chapters(mm_text_io_c *in, int64_t min_tc,
|
|||||||
delete pdata->parents;
|
delete pdata->parents;
|
||||||
safefree(pdata);
|
safefree(pdata);
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
if ((chapters != NULL) && (verbose > 1))
|
if ((chapters != NULL) && (verbose > 1))
|
||||||
debug_c::dump_elements(chapters, 0);
|
debug_c::dump_elements(chapters, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
return chapters;
|
return chapters;
|
||||||
}
|
}
|
||||||
|
@ -136,8 +136,10 @@ void extract_chapters(const char *file_name, bool chapter_format_simple) {
|
|||||||
KaxChapters &chapters = *static_cast<KaxChapters *>(l1);
|
KaxChapters &chapters = *static_cast<KaxChapters *>(l1);
|
||||||
chapters.Read(*es, KaxChapters::ClassInfos.Context, upper_lvl_el, l2,
|
chapters.Read(*es, KaxChapters::ClassInfos.Context, upper_lvl_el, l2,
|
||||||
true);
|
true);
|
||||||
|
#ifdef DEBUG
|
||||||
if (verbose > 0)
|
if (verbose > 0)
|
||||||
debug_c::dump_elements(&chapters, 0);
|
debug_c::dump_elements(&chapters, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!chapters_extracted && !chapter_format_simple) {
|
if (!chapters_extracted && !chapter_format_simple) {
|
||||||
mxinfo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<Chapters>\n");
|
mxinfo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<Chapters>\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user