caps: cleanups
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 11 May 2011 14:01:41 +0000 (16:01 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 11 May 2011 14:06:50 +0000 (16:06 +0200)
We don't need to check if the type is 0, the init function is only called once
in the beginning.

gst/gstcaps.c

index f0cce6d..5e5777a 100644 (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 *