MKV: stop spamming about "unknown seekhead reference"
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 27 Jul 2010 22:50:02 +0000 (00:50 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 27 Jul 2010 22:54:11 +0000 (00:54 +0200)
Seriously, HD logs have 12000 of lines of logs because of that... This is beyond ridiculous.

modules/demux/mkv/matroska_segment_parse.cpp
modules/demux/mkv/mkv.hpp

index 3e1edc0..f756cd3 100644 (file)
@@ -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
index 8efd431..6b46c2a 100644 (file)
@@ -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