[gstreamer-bugs] [Bug 630440] ringbuffer: use g_once for type-init

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Sep 23 15:00:23 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=630440
  GStreamer | gst-plugins-base | unspecified

Sebastian Dröge <slomo> changed:

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

--- Comment #3 from Sebastian Dröge <slomo at circular-chaos.org> 2010-09-23 22:00:17 UTC ---
Yes, using g_once_init_{enter,leave} is definitely important in the _get_type()
functions. If you see more GStreamer code that doesn't use it please file more
bugs :)

The advantage of using the G_DEFINE_TYPE macros is, that it saves quite some
code that you otherwise copy from one source file to another.

commit 550d59354f149a4c3bcaf4ffa567609a6ba1c909
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Thu Sep 23 23:57:50 2010 +0200

    ringbuffer: Use G_DEFINE_ABSTRACT_TYPE instead of manual GObject
boilerplate

    This also makes the _get_type() function threadsafe.

    Fixes bug #630440.

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