ttml: bump needed libxml2 version
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 3 Nov 2016 17:34:54 +0000 (17:34 +0000)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 3 Nov 2016 17:44:33 +0000 (17:44 +0000)
ttml was recently added but it won't compile unless libxml2 version 2.9.2
or later is available. In that version the first parameter of xmlGetProp
switched to being a const. In previous versions the compiler complains
about passing a const value to a non const argument.

configure.ac
ext/ttml/meson.build

index acbe922..3678f33 100644 (file)
@@ -2459,7 +2459,7 @@ AG_GST_CHECK_FEATURE(DTLS, [DTLS plugin], dtls, [
 dnl *** ttml ***
 translit(dnm, m, l) AM_CONDITIONAL(USE_TTML, true)
 AG_GST_CHECK_FEATURE(TTML, [TTML plugin], ttml, [
-  PKG_CHECK_MODULES(TTML, [ libxml-2.0 pango cairo pangocairo ], [
+  PKG_CHECK_MODULES(TTML, [ libxml-2.0 >= 2.9.2 pango cairo pangocairo ], [
     HAVE_TTML="yes"
   ], [
     HAVE_TTML="no"
index e7e8398..5657ffb 100644 (file)
@@ -1,4 +1,4 @@
-libxml_dep = dependency('libxml-2.0', required : false)
+libxml_dep = dependency('libxml-2.0', version : '>= 2.9.2', required : false)
 pango_dep = dependency('pango', required : false)
 cairo_dep = dependency('cairo', required : false)
 pangocairo_dep = dependency('pangocairo', required : false)