gst: Fix usage of glib_check_version()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 26 Jul 2010 12:59:51 +0000 (14:59 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 26 Jul 2010 12:59:51 +0000 (14:59 +0200)
It returns NULL if the installed GLib version is as least as
new as the required version and some explanatory string otherwise.

gst/gst.c

index 18d346d..fd66fa5 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -362,7 +362,7 @@ gst_init_get_option_group (void)
 
   /* Since GLib 2.23.2 calling g_thread_init() 'late' is allowed and is
    * automatically done as part of g_type_init() */
-  if (!glib_check_version (2, 23, 3)) {
+  if (glib_check_version (2, 23, 3)) {
     /* The GLib threading system must be initialised before calling any other
      * GLib function according to the documentation; if the application hasn't
      * called gst_init() yet or initialised the threading system otherwise, we