meson: Bump minimal GLib version to 2.44

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.
This commit is contained in:
Niels De Graef 2019-05-31 23:10:33 +02:00
parent e62b321efe
commit 8f884aa9bc
3 changed files with 2 additions and 7 deletions

View file

@ -21,7 +21,7 @@ m4_define([gst_vaapi_lt_revision], [0])
m4_define([gst_vaapi_lt_age], [1700])
# glib version number
m4_define([glib_version], [2.40])
m4_define([glib_version], [2.44])
# gstreamer version number
m4_define([gst_version], [1.17.0.1])

View file

@ -16,7 +16,7 @@ else
endif
libva_req = ['>= 0.39.0', '!= 0.99.0']
glib_req = '>= 2.40.0'
glib_req = '>= 2.44.0'
libwayland_req = '>= 1.11.0'
gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)

View file

@ -121,11 +121,6 @@ video_output_init (int *argc, char *argv[], GOptionEntry * options)
GOptionContext *ctx;
gboolean success;
#if !GLIB_CHECK_VERSION(2,31,0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
ctx = g_option_context_new ("- test options");
if (!ctx)
return FALSE;