* modules/demux/mkv.cpp: support for libmatroska 0.5.0.
authorSam Hocevar <sam@videolan.org>
Tue, 12 Aug 2003 08:19:20 +0000 (08:19 +0000)
committerSam Hocevar <sam@videolan.org>
Tue, 12 Aug 2003 08:19:20 +0000 (08:19 +0000)
configure.ac
modules/demux/mkv.cpp

index 488e26d..2dbd0a0 100644 (file)
@@ -1,5 +1,5 @@
 dnl Autoconf settings for vlc
-dnl $Id: configure.ac,v 1.55 2003/08/10 21:26:07 gbazin Exp $
+dnl $Id: configure.ac,v 1.56 2003/08/12 08:19:20 sam Exp $
 
 AC_INIT(vlc,0.6.2)
 
@@ -1436,6 +1436,7 @@ AC_LANG_PUSH(C++)
   dnl matroska headers include ebml headers directly... pouah that stinks
   CPPFLAGS="${CPPFLAGS_save} -I/usr/local/include/ebml -I/usr/include/ebml"
   AC_CHECK_HEADERS(EbmlVersion.h matroska/KaxVersion.h, [
+    AC_CHECK_HEADERS(matroska/KaxAttachments.h)
     AX_ADD_PLUGINS([mkv])
     AX_ADD_CXXFLAGS([mkv],[-I/usr/local/include/ebml -I/usr/include/ebml])
     AC_CHECK_LIB(ebml_pic,main,[
index 09af105..6e28797 100644 (file)
@@ -2,7 +2,7 @@
  * mkv.cpp : matroska demuxer
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: mkv.cpp,v 1.19 2003/08/10 14:21:15 gbazin Exp $
+ * $Id: mkv.cpp,v 1.20 2003/08/12 08:19:20 sam Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
 #include "ebml/EbmlVoid.h"
 
 #include "matroska/FileKax.h"
+#ifdef HAVE_MATROSKA_KAXATTACHMENTS_H
+#include "matroska/KaxAttachments.h"
+#else
 #include "matroska/KaxAttachements.h"
+#endif
 #include "matroska/KaxBlock.h"
 #include "matroska/KaxBlockData.h"
 #include "matroska/KaxChapters.h"
@@ -930,9 +934,13 @@ static int Activate( vlc_object_t * p_this )
             /* stop parsing the stream */
             break;
         }
+#ifdef HAVE_MATROSKA_KAXATTACHMENTS_H
+        else if( EbmlId( *el1 ) == KaxAttachments::ClassInfos.GlobalId )
+#else
         else if( EbmlId( *el1 ) == KaxAttachements::ClassInfos.GlobalId )
+#endif
         {
-            msg_Dbg( p_input, "|   + Attachements FIXME TODO (but probably never supported)" );
+            msg_Dbg( p_input, "|   + Attachments FIXME TODO (but probably never supported)" );
         }
         else if( EbmlId( *el1 ) == KaxChapters::ClassInfos.GlobalId )
         {