[vlc-commits] taglib: MP4 covert art comes with v1.6. 1 and only if TAGLIB_WITH_MP4 is defined.

Rémi Duraffort git at videolan.org
Sun Jun 5 00:38:51 CEST 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jun  5 00:27:22 2011 +0200| [7bdcc742148598bb17ebfb2eaeb4eeb378d13d81] | committer: Rémi Duraffort

taglib: MP4 covert art comes with v1.6.1 and only if TAGLIB_WITH_MP4 is defined.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7bdcc742148598bb17ebfb2eaeb4eeb378d13d81
---

 configure.ac                   |    3 ---
 modules/meta_engine/taglib.cpp |    9 ++++-----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index b6cdb17..197fcb6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1776,9 +1776,6 @@ AS_IF([test "${enable_taglib}" != "no"], [
     VLC_ADD_PLUGIN([taglib])
     VLC_ADD_LIBS([taglib],[$TAGLIB_LIBS -lz])
     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 e9dadb0..4828c44 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -65,8 +65,6 @@
 # ifdef TAGLIB_WITH_ASF                     // ASF pictures comes with v1.7.0
 #  define TAGLIB_HAVE_ASFPICTURE_H
 #  include <asffile.h>
-#  include <asftag.h>
-#  include <asfattribute.h>
 # endif
 #endif
 
@@ -82,7 +80,8 @@
 # include <wavfile.h>
 #endif
 
-#ifdef TAGLIB_WITH_MP4
+#if TAGLIB_VERSION >= VERSION_INT(1,6,1) && defined(TAGLIB_WITH_MP4)
+# define TAGLIB_HAVE_MP4COVERTART_H
 # include <mp4file.h>
 #endif
 
@@ -399,7 +398,7 @@ static void ReadMetaFromXiph( Ogg::XiphComment* tag, demux_meta_t* p_demux_meta,
 }
 
 
-#if defined(TAGLIB_WITH_MP4) && defined(HAVE_TAGLIB_MP4COVERART_H)
+#ifdef TAGLIB_HAVE_MP4COVERTART_H
 /**
  * Read the meta information from mp4 specific tags
  * @param tag: the mp4 tag
@@ -531,7 +530,7 @@ static int ReadMeta( vlc_object_t* p_this)
         else if( flac->xiphComment() )
             ReadMetaFromXiph( flac->xiphComment(), p_demux_meta, p_meta );
     }
-#if defined(TAGLIB_WITH_MP4) && defined(HAVE_TAGLIB_MP4COVERART_H)
+#ifdef TAGLIB_HAVE_MP4COVERTART_H
     else if( MP4::File *mp4 = dynamic_cast<MP4::File*>(f.file()) )
     {
         if( mp4->tag() )



More information about the vlc-commits mailing list