Commit 2cae3dc3 authored by Sam Hocevar's avatar Sam Hocevar

* modules/demux/mkv.cpp: support for libmatroska 0.5.0.

parent 235b0198
dnl Autoconf settings for vlc 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) AC_INIT(vlc,0.6.2)
...@@ -1436,6 +1436,7 @@ AC_LANG_PUSH(C++) ...@@ -1436,6 +1436,7 @@ AC_LANG_PUSH(C++)
dnl matroska headers include ebml headers directly... pouah that stinks dnl matroska headers include ebml headers directly... pouah that stinks
CPPFLAGS="${CPPFLAGS_save} -I/usr/local/include/ebml -I/usr/include/ebml" CPPFLAGS="${CPPFLAGS_save} -I/usr/local/include/ebml -I/usr/include/ebml"
AC_CHECK_HEADERS(EbmlVersion.h matroska/KaxVersion.h, [ AC_CHECK_HEADERS(EbmlVersion.h matroska/KaxVersion.h, [
AC_CHECK_HEADERS(matroska/KaxAttachments.h)
AX_ADD_PLUGINS([mkv]) AX_ADD_PLUGINS([mkv])
AX_ADD_CXXFLAGS([mkv],[-I/usr/local/include/ebml -I/usr/include/ebml]) AX_ADD_CXXFLAGS([mkv],[-I/usr/local/include/ebml -I/usr/include/ebml])
AC_CHECK_LIB(ebml_pic,main,[ AC_CHECK_LIB(ebml_pic,main,[
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* mkv.cpp : matroska demuxer * mkv.cpp : matroska demuxer
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * 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> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -53,7 +53,11 @@ ...@@ -53,7 +53,11 @@
#include "ebml/EbmlVoid.h" #include "ebml/EbmlVoid.h"
#include "matroska/FileKax.h" #include "matroska/FileKax.h"
#ifdef HAVE_MATROSKA_KAXATTACHMENTS_H
#include "matroska/KaxAttachments.h"
#else
#include "matroska/KaxAttachements.h" #include "matroska/KaxAttachements.h"
#endif
#include "matroska/KaxBlock.h" #include "matroska/KaxBlock.h"
#include "matroska/KaxBlockData.h" #include "matroska/KaxBlockData.h"
#include "matroska/KaxChapters.h" #include "matroska/KaxChapters.h"
...@@ -930,9 +934,13 @@ static int Activate( vlc_object_t * p_this ) ...@@ -930,9 +934,13 @@ static int Activate( vlc_object_t * p_this )
/* stop parsing the stream */ /* stop parsing the stream */
break; break;
} }
#ifdef HAVE_MATROSKA_KAXATTACHMENTS_H
else if( EbmlId( *el1 ) == KaxAttachments::ClassInfos.GlobalId )
#else
else if( EbmlId( *el1 ) == KaxAttachements::ClassInfos.GlobalId ) 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 ) else if( EbmlId( *el1 ) == KaxChapters::ClassInfos.GlobalId )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment