[vlc-commits] MKV: Fix build with libmatroska 1.3.0
Dominique Leuenberger
git at videolan.org
Tue Sep 27 20:01:27 CEST 2011
vlc | branch: master | Dominique Leuenberger <dominique at leuenberger.net> | Tue Sep 27 19:59:52 2011 +0200| [2206ce852685c38bce7214f36d81f9065e6a5d16] | committer: Jean-Baptiste Kempf
MKV: Fix build with libmatroska 1.3.0
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2206ce852685c38bce7214f36d81f9065e6a5d16
---
modules/demux/mkv/matroska_segment_parse.cpp | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 616c312..bc12606 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -863,7 +863,13 @@ void matroska_segment_c::ParseChapterAtom( int i_level, KaxChapterAtom *ca, chap
else if( MKV_IS_ID( l, KaxChapterSegmentEditionUID ) )
{
chapters.p_segment_edition_uid = new KaxChapterSegmentEditionUID( *static_cast<KaxChapterSegmentEditionUID*>(l) );
- msg_Dbg( &sys.demuxer, "| | | | + ChapterSegmentEditionUID= %u", *(uint32*)chapters.p_segment_edition_uid->GetBuffer() );
+ msg_Dbg( &sys.demuxer, "| | | | + ChapterSegmentEditionUID= %u",
+#if LIBMATROSKA_VERSION < 0x010300
+ *(uint32*)chapters.p_segment_edition_uid->GetBuffer()
+#else
+ *(uint32*)chapters.p_segment_edition_uid
+#endif
+ );
}
else if( MKV_IS_ID( l, KaxChapterTimeStart ) )
{
More information about the vlc-commits
mailing list