summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-04-30 13:10:16 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-04-30 13:10:16 +0100
commit3d6d9ca4e1a962b3b0da8780ccbe74ec9dfc70f3 (patch)
tree42d0ff844ad2834e905634d9e9343fbcf2058305
parent8e932639ba8434cf5ea8b010650a173f5ec8dd6d (diff)
Bump GLib requirement to 2.20
See http://gstreamer.freedesktop.org/wiki/ReleasePlanning/GLibRequirement
-rw-r--r--configure.ac2
-rw-r--r--gst/gst.c13
2 files changed, 2 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac
index a7e35128a6..9d4f6ff7db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -500,7 +500,7 @@ LIBS="$save_libs"
dnl *** checks for dependency libraries ***
dnl GLib
-GLIB_REQ=2.18
+GLIB_REQ=2.20
AG_GST_GLIB_CHECK([$GLIB_REQ])
diff --git a/gst/gst.c b/gst/gst.c
index b3a03c7aca..e0cee3b20a 100644
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -368,11 +368,7 @@ gst_init_get_option_group (void)
* called gst_init() yet or initialised the threading system otherwise, we
* better issue a warning here (since chances are high that the application
* has already called other GLib functions such as g_option_context_new() */
-#if GLIB_CHECK_VERSION (2,20,0)
if (!g_thread_get_initialized ()) {
-#else
- if (!g_thread_supported ()) {
-#endif
g_warning ("The GStreamer function gst_init_get_option_group() was\n"
"\tcalled, but the GLib threading system has not been initialised\n"
"\tyet, something that must happen before any other GLib function\n"
@@ -428,11 +424,7 @@ gst_init_check (int *argc, char **argv[], GError ** err)
#endif
gboolean res;
-#if GLIB_CHECK_VERSION (2,20,0)
if (!g_thread_get_initialized ())
-#else
- if (!g_thread_supported ())
-#endif
g_thread_init (NULL);
if (gst_initialized) {
@@ -577,11 +569,8 @@ init_pre (GOptionContext * context, GOptionGroup * group, gpointer data,
g_type_init ();
/* we need threading to be enabled right here */
-#if GLIB_CHECK_VERSION (2,20,0)
g_assert (g_thread_get_initialized ());
-#else
- g_assert (g_thread_supported ());
-#endif
+
_gst_debug_init ();
#ifdef ENABLE_NLS