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

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 28 16:12:10 PST 2010


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

           Summary: Initializing the glib thread system seems not to work
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: blocker
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: jaalburqu at svn.gnome.org
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


Created an attachment (id=152533)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=152533)
Test case that initializes the glib thread system

This is only filed as a blocker because I understand that a new release is
coming up and bugs should be filed as blockers now that a pre-release is
available.  The severity can be adjusted accordingly if it is not necessarily a
blocker.

After initializing the glib thread system and then trying to get the GStreamer
option group the following warning results (The test case is attached):

(process:6132): GStreamer-WARNING **: The GStreamer function
gst_init_get_option_group() was
    called, but the GLib threading system has not been initialised
    yet, something that must happen before any other GLib function
    is called. The application needs to be fixed so that it calls
       if (!g_thread_supported ()) g_thread_init(NULL);
    as very first thing in its main() function. Please file a bug
    against this application.

There seems to be a problem because the g_thread_supported() macro resolves to
1 if both G_THREAD_ENABLED and G_THREADS_MANDATORY are defined. 
G_THREAD_ENABLED is defined in the glibconfig.h file while G_THREADS_MANDATORY
comes from GStreamer's pkg-config cflags.

It's hard to know exactly what's going on hence the reason for this bug.  I
hope it's nothing complicated.

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