summaryrefslogtreecommitdiff
path: root/gst/gstpadtemplate.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2006-06-12 08:55:21 +0000
committerWim Taymans <wim.taymans@gmail.com>2006-06-12 08:55:21 +0000
commit7e972ee6b9d2a3b12607ef34402cfd39f7b58c0b (patch)
treeabb2e9c27d66a8a9eb89b3e1b897b1ff9a3a3a8e /gst/gstpadtemplate.c
parentda908556e17a2c505ba2bf4d7d670ebfea02d56f (diff)
Add G_UNLIKELY in type registration.
Original commit message from CVS: * gst/gsterror.c: (gst_g_error_get_type): * gst/gstpadtemplate.c: (gst_pad_template_get_type), (gst_static_pad_template_get_type): * gst/gsttaglist.c: (gst_tag_list_get_type): * gst/gsttagsetter.c: (gst_tag_setter_get_type): * gst/gsttypefindfactory.c: (gst_type_find_factory_get_type): * gst/gsturi.c: (gst_uri_handler_get_type): * gst/gstvalue.c: (gst_date_get_type): * gst/gstxml.c: (gst_xml_get_type): * libs/gst/base/gstbasesink.c: (gst_base_sink_get_type), (gst_base_sink_preroll_object), (gst_base_sink_get_position): * libs/gst/base/gstbasesrc.c: (gst_base_src_get_type): Add G_UNLIKELY in type registration.
Diffstat (limited to 'gst/gstpadtemplate.c')
-rw-r--r--gst/gstpadtemplate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c
index bff35fb06..2f12f1c5d 100644
--- a/gst/gstpadtemplate.c
+++ b/gst/gstpadtemplate.c
@@ -128,7 +128,7 @@ gst_pad_template_get_type (void)
{
static GType padtemplate_type = 0;
- if (!padtemplate_type) {
+ if (G_UNLIKELY (padtemplate_type == 0)) {
static const GTypeInfo padtemplate_info = {
sizeof (GstPadTemplateClass), NULL, NULL,
(GClassInitFunc) gst_pad_template_class_init, NULL, NULL,
@@ -246,7 +246,7 @@ gst_static_pad_template_get_type (void)
{
static GType staticpadtemplate_type = 0;
- if (!staticpadtemplate_type) {
+ if (G_UNLIKELY (staticpadtemplate_type == 0)) {
staticpadtemplate_type =
g_pointer_type_register_static ("GstStaticPadTemplate");
}