meson: update glib minimum version to 2.56
authorStéphane Cerveau <scerveau@collabora.com>
Fri, 16 Oct 2020 10:45:09 +0000 (12:45 +0200)
committerStéphane Cerveau <scerveau@collabora.com>
Fri, 16 Oct 2020 10:45:09 +0000 (12:45 +0200)
In order to support the symbol g_enum_to_string in various
project using GStreamer ( gst-validate etc.), the glib minimum
version should be 2.56.0.

Remove compat code as glib requirement
is now > 2.56

Version used by Ubuntu 18.04 LTS

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-omx/-/merge_requests/74>

examples/egl/testegl.c
meson.build

index 615a8fe..b7e7745 100644 (file)
@@ -1495,12 +1495,6 @@ main (int argc, char **argv)
   state->current_buffer = NULL;
   state->caps = NULL;
 
-#if !GLIB_CHECK_VERSION (2, 31, 0)
-  /* must initialise the threading system before using any other GLib funtion */
-  if (!g_thread_supported ())
-    g_thread_init (NULL);
-#endif
-
   ctx = g_option_context_new ("[ADDITIONAL ARGUMENTS]");
   g_option_context_add_main_entries (ctx, options, NULL);
   g_option_context_add_group (ctx, gst_init_get_option_group ());
index 8945dd8..7db071c 100644 (file)
@@ -15,7 +15,7 @@ else
   gst_version_nano = 0
 endif
 
-glib_req = '>= 2.44.0'
+glib_req = '>= 2.56.0'
 gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
 tizil_req = '>= 0.19.0'
 api_version = '1.0'