We don't need to check if the type is 0, the init function is only called once
in the beginning.
void
_gst_caps_initialize (void)
{
- if (G_LIKELY (_gst_caps_type == 0)) {
- _gst_caps_type = gst_mini_object_register ("GstCaps");
+ _gst_caps_type = gst_mini_object_register ("GstCaps");
- g_value_register_transform_func (_gst_caps_type,
- G_TYPE_STRING, gst_caps_transform_to_string);
- }
+ g_value_register_transform_func (_gst_caps_type,
+ G_TYPE_STRING, gst_caps_transform_to_string);
}
static GstCaps *