caps: cleanups

We don't need to check if the type is 0, the init function is only called once
in the beginning.
This commit is contained in:
Wim Taymans 2011-05-11 16:01:41 +02:00
parent 0bfbce4463
commit e2452c8c78

View file

@ -113,12 +113,10 @@ GType _gst_caps_type = 0;
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 *