gst: Fix usage of glib_check_version()

It returns NULL if the installed GLib version is as least as
new as the required version and some explanatory string otherwise.
This commit is contained in:
Sebastian Dröge 2010-07-26 14:59:51 +02:00
parent 708bc7dc97
commit c8b06272bc

View file

@ -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