]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
gstreamer: can optionally use libxml2
authorGustavo Zacarias <gustavo.zacarias@free-electrons.com>
Fri, 20 Nov 2015 13:06:51 +0000 (10:06 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 26 Nov 2015 21:36:19 +0000 (22:36 +0100)
gstreamer can optionally build against libxml2, so account for it in
the dependencies.
Functionality seems somewhat reduced without it, an example being
misdetecting subtitle (.srt) files as subrip mime type instead of
subtitle itself.

A failed scenario would be:

$ gst-typefind-0.10 some.srt
some.srt - application/x-subrip

When built with libxml2:

$ gst-typefind-0.10 some.srt
some.srt - application/x-subtitle

This doesn't affect gstreamer 1.x since it dropped any use of libxml2.

Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gstreamer/gstreamer/gstreamer.mk

index d1e328233ff359f1605ef09722251157cec3718c..cc035c06737e7579525ef7f78a8f62c72332ec3b 100644 (file)
@@ -27,6 +27,7 @@ GSTREAMER_CONF_OPTS = \
        $(if $(BR2_PACKAGE_GSTREAMER_GST_DEBUG),,--disable-gst-debug) \
        $(if $(BR2_PACKAGE_GSTREAMER_PLUGIN_REGISTRY),,--disable-registry)
 
-GSTREAMER_DEPENDENCIES = libglib2 host-pkgconf host-bison host-flex
+GSTREAMER_DEPENDENCIES = libglib2 host-pkgconf host-bison host-flex \
+       $(if $(BR2_PACKAGE_LIBXML2),libxml2)
 
 $(eval $(autotools-package))