summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-07-19 14:29:33 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-07-19 16:24:22 +0200
commite5b462ef40e7759c48827ddcc784f5f149307846 (patch)
tree124f153c6ff5a1f0b2e418f194bc792af3677dc3
parentc945b759a7b5180d0d60eac4be9a2821ba51f9df (diff)
downloadgstreamer-vaapi-e5b462ef40e7759c48827ddcc784f5f149307846.tar.gz
glibcompat: drop explicit check for g_list_free_full().
-rw-r--r--configure.ac3
-rw-r--r--gst-libs/gst/vaapi/glibcompat.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 69f5e7b6..a781bf18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -163,9 +163,6 @@ AC_SUBST(GTKDOC_VERSION)
dnl Check for GLib
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= glib_version])
-AC_CHECK_LIB([glib-2.0], [g_list_free_full], [
- AC_DEFINE([HAVE_G_LIST_FREE_FULL], [1],
- [Define to 1 if g_list_free_full() is available.])])
dnl Check for GStreamer
PKG_CHECK_MODULES([GST],
diff --git a/gst-libs/gst/vaapi/glibcompat.h b/gst-libs/gst/vaapi/glibcompat.h
index 7ccd6459..93a3903c 100644
--- a/gst-libs/gst/vaapi/glibcompat.h
+++ b/gst-libs/gst/vaapi/glibcompat.h
@@ -24,7 +24,7 @@
#include <glib.h>
-#ifndef HAVE_G_LIST_FREE_FULL
+#if !GLIB_CHECK_VERSION(2,27,2)
static inline void
g_list_free_full(GList *list, GDestroyNotify free_func)
{