[vlc-commits] commit: Fix taglib compilation. ( Götz Waschk )
git at videolan.org
git at videolan.org
Thu Jul 15 23:08:52 CEST 2010
vlc/vlc-1.1 | branch: master | Götz Waschk <goetz.waschk at gmail.com> | Thu Jul 15 20:04:24 2010 +0200| [3075370fd5099b3120a9e65a0ae6d61d9e4cdf80] | 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>
(cherry picked from commit d456bb4a261fbdc47989c25538f9f2072d7f9c76)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=3075370fd5099b3120a9e65a0ae6d61d9e4cdf80
---
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 6aa6441..2c87c2c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1713,7 +1713,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 6ec8d8d..9ddb26e 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -321,7 +321,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") )
@@ -414,7 +414,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