[gstreamer-bugs] [Bug 608398] Initializing the glib thread system seems not to work

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Jan 30 07:40:56 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=608398
  GStreamer | gstreamer (core) | git

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #11 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2010-01-30 15:40:54 UTC ---
commit 6c6f20e0b6fdcce6c4248b063598c98ec91d1838
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Sat Jan 30 13:45:58 2010 +0000

    init: don't spew warning about late g_thread_init()s if GLib >= 2.23.2

    Late g_thread_init() is fine with newer GLib versions and done
automatically
    from g_type_init() there, so don't warn if the application hasn't called
    g_thread_init() yet when gst_init() is called with new GLib versions.

    Fixes #608398.

commit 79d3f1a2c102fe0f0ee6a1f1980943528b46c5c3
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Fri Jan 29 09:41:30 2010 +0000

    pkgconfig: don't put -DG_THREADS_MANDATORY into our pkg-config CFLAGS

    If we force -DG_THREADS_MANDATORY onto apps, then g_thread_supported()
    will always evaluate to TRUE, so the typical thread initialisation
    boilerplate code if (!g_thread_supported()) g_thread_init(NULL); will
    no longer work, and the threading system not be initialised and us
    printing a warning in gst_init. This may be fine in most cases, since
    late initialisation is allowed and automatically done in g_type_init()
    since GLib 2.23.2, but let's be cautious and only use this define when
    compiling GStreamer itself.

    See #608398.

commit 96dc7930768997da39cd1e6b80485bc69b421601
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Sat Jan 30 13:56:42 2010 +0000

    gst-glib2.m4: add -DG_THREADS_MANDATORY to GLIB_CFLAGS

    Threading is always enabled in GStreamer code, so we may just as well
    add -DG_THREADS_MANDATORY to GLIB_CFLAGS so that all GStreamer modules
    are automatically compiled with it (optimisation).

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Gstreamer-bugs mailing list