gst/gstformat.c: g_type_class_ref() our GstFormat type to make sure we avoid the thread-unsafe bits of the GObject/GT...

Original commit message from CVS:
* gst/gstformat.c: (_gst_format_initialize):
g_type_class_ref() our GstFormat type to make sure we avoid the
thread-unsafe bits of the GObject/GType system, ie. bug #349410 and
bug #64764. Should fix intermittent tee unit test failures (#474823).
This commit is contained in:
Tim-Philipp Müller 2007-11-01 20:10:48 +00:00
parent 56d428073e
commit b826ab6612
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2007-11-01 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstformat.c: (_gst_format_initialize):
g_type_class_ref() our GstFormat type to make sure we avoid the
thread-unsafe bits of the GObject/GType system, ie. bug #349410 and
bug #64764. Should fix intermittent tee unit test failures (#474823).
2007-11-01 Tim-Philipp Müller <tim at centricular dot net>
* tests/check/elements/tee.c: (test_num_buffers):

View file

@ -74,7 +74,7 @@ _gst_format_initialize (void)
_n_values++;
}
/* getting the type registers the enum */
gst_format_get_type ();
g_type_class_ref (gst_format_get_type ());
g_static_mutex_unlock (&mutex);
}