GNOME Bugzilla – Bug 739722
matroskamux: Thread safe register GstMatroskamuxPad
Last modified: 2014-11-19 16:29:52 UTC
Created attachment 290090 [details] [review] patch for gst-plugins-good The function gst_matroskamux_pad_get_type is not thread safe. If one thread is reading type and sees that it 0 and call g_type_register_static_simple but before write to type another thread is doing the same.
Comment on attachment 290090 [details] [review] patch for gst-plugins-good This should use g_once_init_enter()/_leave() as all the other type registration code... or ideally just use the G_DEFINE_TYPE() macro.
Created attachment 290111 [details] [review] New gst-plugins-good.patch
Pushed, thanks: commit ec05d3b6d85af824d7984bff6adbd839b946d481 Author: Göran Jönsson <goranjn@axis.com> Date: Thu Nov 6 15:37:28 2014 +0100 matroskamux: make GstMatroskamuxPad get_type() function thread-safe https://bugzilla.gnome.org/show_bug.cgi?id=739722