[vlc-devel] [PATCH] MKV: MKV_DEBUG is a define to set, not a particular value
Steve Lhomme
robUx4 at videolabs.io
Mon Mar 2 10:15:57 CET 2015
---
modules/demux/mkv/virtual_segment.cpp | 4 ++--
modules/demux/mkv/virtual_segment.hpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index a41abb8..d9d0dc0 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -207,7 +207,7 @@ virtual_edition_c::virtual_edition_c( chapter_edition_c * p_edit, std::vector<ma
b_ordered = true;
}
-#if MKV_DEBUG
+#ifdef MKV_DEBUG
msg_Dbg( &p_main_segment->sys.demuxer, "-- RECAP-BEGIN --" );
print();
msg_Dbg( &p_main_segment->sys.demuxer, "-- RECAP-END --" );
@@ -610,7 +610,7 @@ bool virtual_chapter_c::Leave( bool b_do_subs )
return false;
}
-#if MKV_DEBUG
+#ifdef MKV_DEBUG
void virtual_chapter_c::print()
{
msg_Dbg( &p_segment->sys.demuxer, "*** chapter %"PRId64" - %"PRId64" (%u)",
diff --git a/modules/demux/mkv/virtual_segment.hpp b/modules/demux/mkv/virtual_segment.hpp
index ed40e59..46e9df2 100644
--- a/modules/demux/mkv/virtual_segment.hpp
+++ b/modules/demux/mkv/virtual_segment.hpp
@@ -72,7 +72,7 @@ public:
int64_t i_virtual_stop_time;
int i_seekpoint_num;
std::vector<virtual_chapter_c *> sub_chapters;
-#if MKV_DEBUG
+#ifdef MKV_DEBUG
void print();
#endif
};
@@ -101,7 +101,7 @@ public:
private:
void retimeChapters();
void retimeSubChapters( virtual_chapter_c * p_vchap );
-#if MKV_DEBUG
+#ifdef MKV_DEBUG
void print(){ for( size_t i = 0; i<chapters.size(); i++ ) chapters[i]->print(); }
#endif
--
2.2.2
More information about the vlc-devel
mailing list