diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2006-02-28 10:52:02 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-02-28 10:52:02 +0000 |
commit | a19398105c539437eabbb23ca8158b0c11c8b9d5 (patch) | |
tree | e1237fb6942941986b33263965184000a78cf3f7 /gst/gstindexfactory.c | |
parent | e4d393eb66712ddf1b34b4728c31acec29bdb041 (diff) |
gst/gstbin.c: Help the compiler a bit with type registration.
Original commit message from CVS:
* gst/gstbin.c: (gst_bin_get_type), (gst_bin_handle_message_func):
Help the compiler a bit with type registration.
Use existing forward cod path instead of duplicating it when
handling a message.
* gst/gstbus.c: (gst_bus_get_type):
* gst/gstcaps.c: (gst_caps_get_type), (gst_static_caps_get_type):
* gst/gstchildproxy.c: (gst_child_proxy_get_type):
* gst/gstclock.c: (gst_clock_get_type):
* gst/gstelement.c: (gst_element_get_type),
* gst/gstelementfactory.c: (gst_element_factory_get_type):
* gst/gstindexfactory.c: (gst_index_factory_get_type):
* gst/gstminiobject.c: (gst_mini_object_get_type):
* gst/gstpad.c: (gst_pad_get_type):
* gst/gstsegment.c: (gst_segment_get_type):
* gst/gststructure.c: (gst_structure_get_type):
* gst/gstsystemclock.c: (gst_system_clock_get_type):
* gst/gsttask.c: (gst_task_get_type), (gst_task_join):
* gst/gstvalue.c:
Help compiler with type registration.
* plugins/elements/gstqueue.c: (gst_queue_handle_sink_event):
Small doc update.
Diffstat (limited to 'gst/gstindexfactory.c')
-rw-r--r-- | gst/gstindexfactory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstindexfactory.c b/gst/gstindexfactory.c index ed8bfb6e18..cad2abc9eb 100644 --- a/gst/gstindexfactory.c +++ b/gst/gstindexfactory.c @@ -50,7 +50,7 @@ gst_index_factory_get_type (void) { static GType indexfactory_type = 0; - if (!indexfactory_type) { + if (G_UNLIKELY (indexfactory_type == 0)) { static const GTypeInfo indexfactory_info = { sizeof (GstIndexFactoryClass), NULL, |