configure: Require GLib 2.20

This commit is contained in:
Sebastian Dröge 2010-06-14 17:01:03 +02:00
parent 0679c76b64
commit 85d3c03d26
2 changed files with 1 additions and 5 deletions

View file

@ -177,7 +177,7 @@ AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
dnl GLib is required
AG_GST_GLIB_CHECK([2.16])
AG_GST_GLIB_CHECK([2.20])
dnl checks for gstreamer
dnl uninstalled is selected preferentially -- see pkg-config(1)

View file

@ -30,12 +30,8 @@ static gchar *
g_value_to_string (const GValue * val)
{
if (G_VALUE_TYPE (val) == GST_TYPE_BUFFER) {
#if GLIB_CHECK_VERSION (2,16,0)
const GstBuffer *buf = gst_value_get_buffer (val);
gchar *ret = g_base64_encode (GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
#else
gchar *ret = gst_value_serialize (val);
#endif
return ret;
} else {