[vlc-commits] commit: MKV: stop spamming about "unknown seekhead reference" ( Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Wed Jul 28 00:53:44 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jul 28 00:50:02 2010 +0200| [d91338c6f6a68601f9eedaa5d95dac749f6281f7] | committer: Jean-Baptiste Kempf
MKV: stop spamming about "unknown seekhead reference"
Seriously, HD logs have 12000 of lines of logs because of that... This is beyond ridiculous.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d91338c6f6a68601f9eedaa5d95dac749f6281f7
---
modules/demux/mkv/matroska_segment_parse.cpp | 4 ++++
modules/demux/mkv/mkv.hpp | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 3e1edc0..f756cd3 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -60,7 +60,9 @@ void matroska_segment_c::ParseSeekHead( KaxSeekHead *seekhead )
EbmlId id = EbmlVoid::ClassInfos.GlobalId;
int64_t i_pos = -1;
+#ifdef MKV_DEBUG
msg_Dbg( &sys.demuxer, "| | + Seek" );
+#endif
ep->Down();
while( ( l = ep->Get() ) != NULL )
{
@@ -121,8 +123,10 @@ void matroska_segment_c::ParseSeekHead( KaxSeekHead *seekhead )
msg_Dbg( &sys.demuxer, "| - attachments at %"PRId64, i_pos );
LoadSeekHeadItem( KaxAttachments::ClassInfos, i_pos );
}
+#ifdef MKV_DEBUG
else
msg_Dbg( &sys.demuxer, "| - unknown seekhead reference at %"PRId64, i_pos );
+#endif
}
}
else
diff --git a/modules/demux/mkv/mkv.hpp b/modules/demux/mkv/mkv.hpp
index 8efd431..6b46c2a 100644
--- a/modules/demux/mkv/mkv.hpp
+++ b/modules/demux/mkv/mkv.hpp
@@ -110,6 +110,8 @@ extern "C" {
# include <zlib.h>
#endif
+#define MKV_DEBUG 0
+
#define MATROSKA_COMPRESSION_NONE -1
#define MATROSKA_COMPRESSION_ZLIB 0
#define MATROSKA_COMPRESSION_BLIB 1
More information about the vlc-commits
mailing list