meson: Bump minimal GLib version to 2.44
authorNiels De Graef <niels.degraef@barco.com>
Fri, 31 May 2019 20:56:09 +0000 (22:56 +0200)
committerNiels De Graef <niels.degraef@barco.com>
Mon, 3 Jun 2019 06:51:40 +0000 (08:51 +0200)
This means we can use some newer features and get rid of some
boilerplate code using the `G_DECLARE_*` macros.

As discussed on IRC, 2.44 is old enough by now to start depending on it.

configure.ac
meson.build
tests/check/elements/dataurisrc.c

index 76f1258..adfbeb7 100644 (file)
@@ -791,7 +791,7 @@ fi
 dnl *** checks for dependency libraries ***
 
 dnl GLib
-GLIB_REQ=2.40.0
+GLIB_REQ=2.44.0
 AG_GST_GLIB_CHECK([$GLIB_REQ])
 
 dnl Check for documentation xrefs
index ddaa8eb..db63f66 100644 (file)
@@ -427,7 +427,7 @@ libsinc = include_directories('libs')
 privinc = include_directories('gst')
 
 # Find dependencies
-glib_dep = dependency('glib-2.0', version : '>=2.40.0',
+glib_dep = dependency('glib-2.0', version : '>=2.44.0',
   fallback: ['glib', 'libglib_dep'])
 gobject_dep = dependency('gobject-2.0',
   fallback: ['glib', 'libgobject_dep'])
index 0ae1e50..96278ea 100644 (file)
@@ -488,9 +488,7 @@ GST_START_TEST (test_dataurisrc_uri_iface)
       GST_URI_SRC);
   protocols = gst_uri_handler_get_protocols (GST_URI_HANDLER (src));
   fail_unless (protocols != NULL && *protocols != NULL);
-#if GLIB_CHECK_VERSION (2, 44, 0)
   fail_unless (g_strv_contains (protocols, "data"));
-#endif
   fail_if (gst_uri_handler_set_uri (GST_URI_HANDLER (src), "file:///foo",
           NULL));
   fail_unless (gst_uri_handler_set_uri (GST_URI_HANDLER (src), data_uri, NULL));