[gstreamer-bugs] [Bug 585970] gst_audioringbuffer_get_type is not thread safe

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jun 16 05:43:49 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=585970

  GStreamer | gst-plugins-base | Ver: git




------- Comment #3 from Philip Jägenstedt  2009-06-16 12:43 UTC -------
Perhaps I'm missing something, but your fix yesterday looks very circular.
gst_audioringbuffer_get_type has a race condition, but
gst_audioringbuffer_class_init would only be called after
gst_audioringbuffer_get_type (as it is declared static and only referenced in
_get_type). How then does g_type_class_ref (GST_TYPE_AUDIORING_BUFFER) in
gst_audioringbuffer_class_init help matters?

Debugging confirms that the order of calls is _get_type and then _class_init.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=585970.




More information about the Gstreamer-bugs mailing list