mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
configure: Require GLib 2.20
This commit is contained in:
parent
0679c76b64
commit
85d3c03d26
2 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue