[vlc-commits] commit: Fix taglib compilation. ( Götz Waschk )
git at videolan.org
git at videolan.org
Thu Jul 15 20:15:33 CEST 2010
vlc | branch: master | Götz Waschk <goetz.waschk at gmail.com> | Thu Jul 15 20:04:24 2010 +0200| [d456bb4a261fbdc47989c25538f9f2072d7f9c76] | committer: Rémi Duraffort
Fix taglib compilation.
1.6.0 does not support cover arts but the later version does support it.
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d456bb4a261fbdc47989c25538f9f2072d7f9c76
---
configure.ac | 6 +++++-
modules/meta_engine/taglib.cpp | 4 ++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 0e7a5a2..4ed7c06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1696,7 +1696,11 @@ AC_ARG_ENABLE(taglib,
PKG_CHECK_MODULES(TAGLIB, taglib >= 1.5,
[ VLC_ADD_PLUGIN([taglib])
VLC_ADD_LIBS([taglib],[$TAGLIB_LIBS -lz])
- VLC_ADD_CXXFLAGS([taglib],[$TAGLIB_CFLAGS]) ],
+ VLC_ADD_CXXFLAGS([taglib],[$TAGLIB_CFLAGS])
+ AC_LANG_PUSH(C++)
+ AC_CHECK_HEADERS(taglib/mp4coverart.h)
+ AC_LANG_POP(C++)
+ ],
[AC_MSG_WARN(TagLib library not found)])
])
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index 4e25b50..a757568 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -322,7 +322,7 @@ static void ReadMetaFromXiph( Ogg::XiphComment* tag, demux_t* p_demux, demux_met
vlc_meta_SetArtURL( p_meta, "attachment://cover" );
}
-#ifdef TAGLIB_WITH_MP4
+#if defined(TAGLIB_WITH_MP4) && defined(HAVE_TAGLIB_MP4COVERART_H)
static void ReadMetaFromMP4( MP4::Tag* tag, demux_t *p_demux, demux_meta_t *p_demux_meta, vlc_meta_t* p_meta )
{
if( tag->itemListMap().contains("covr") )
@@ -430,7 +430,7 @@ static int ReadMeta( vlc_object_t* p_this)
else if( flac->xiphComment() )
ReadMetaFromXiph( flac->xiphComment(), p_demux, p_demux_meta, p_meta );
}
-#ifdef TAGLIB_WITH_MP4
+#if defined(TAGLIB_WITH_MP4) && defined(HAVE_TAGLIB_MP4COVERART_H)
else if( MP4::File *mp4 = dynamic_cast<MP4::File*>(f.file()) )
{
if( mp4->tag() )
More information about the vlc-commits
mailing list