mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +00:00
gst/: Remove empty instance_init() functions to save relocs and lessen the noise. Remove some of the function prototy...
Original commit message from CVS: * gst/gstindexfactory.c: (gst_index_factory_get_type): * gst/gstplugin.c: (gst_plugin_init): * gst/gstpluginfeature.c: (gst_plugin_feature_init): * gst/gstquery.c: (gst_query_get_type): * gst/gstregistry.c: (gst_registry_init): * gst/gsturi.c: (gst_uri_handler_base_init): Remove empty instance_init() functions to save relocs and lessen the noise. Remove some of the function prototypes that are doubled by G_DEFINE_TYPE.
This commit is contained in:
parent
8aff242e77
commit
1756e6aa87
7 changed files with 20 additions and 24 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2007-06-27 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* gst/gstindexfactory.c: (gst_index_factory_get_type):
|
||||
* gst/gstplugin.c: (gst_plugin_init):
|
||||
* gst/gstpluginfeature.c: (gst_plugin_feature_init):
|
||||
* gst/gstquery.c: (gst_query_get_type):
|
||||
* gst/gstregistry.c: (gst_registry_init):
|
||||
* gst/gsturi.c: (gst_uri_handler_base_init):
|
||||
Remove empty instance_init() functions to save relocs and lessen the
|
||||
noise. Remove some of the function prototypes that are doubled by
|
||||
G_DEFINE_TYPE.
|
||||
|
||||
2007-06-27 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
Patch by: Étienne Noreau-Hébert <etienne at deepunder dot org>
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#include "gstregistry.h"
|
||||
|
||||
static void gst_index_factory_class_init (GstIndexFactoryClass * klass);
|
||||
static void gst_index_factory_init (GstIndexFactory * factory);
|
||||
static void gst_index_factory_finalize (GObject * object);
|
||||
|
||||
static GstPluginFeatureClass *factory_parent_class = NULL;
|
||||
|
@ -60,7 +59,7 @@ gst_index_factory_get_type (void)
|
|||
NULL,
|
||||
sizeof (GstIndexFactory),
|
||||
0,
|
||||
(GInstanceInitFunc) gst_index_factory_init,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -86,11 +85,6 @@ gst_index_factory_class_init (GstIndexFactoryClass * klass)
|
|||
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_index_factory_finalize);
|
||||
}
|
||||
|
||||
static void
|
||||
gst_index_factory_init (GstIndexFactory * factory)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
gst_index_factory_finalize (GObject * object)
|
||||
{
|
||||
|
|
|
@ -108,8 +108,8 @@ static const gchar *valid_licenses[] = {
|
|||
|
||||
static GstPlugin *gst_plugin_register_func (GstPlugin * plugin,
|
||||
GstPluginDesc * desc);
|
||||
static void
|
||||
gst_plugin_desc_copy (GstPluginDesc * dest, const GstPluginDesc * src);
|
||||
static void gst_plugin_desc_copy (GstPluginDesc * dest,
|
||||
const GstPluginDesc * src);
|
||||
static void gst_plugin_desc_free (GstPluginDesc * desc);
|
||||
|
||||
|
||||
|
@ -118,7 +118,7 @@ G_DEFINE_TYPE (GstPlugin, gst_plugin, GST_TYPE_OBJECT);
|
|||
static void
|
||||
gst_plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
|
||||
/* do nothing, needed because of G_DEFINE_TYPE */
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -39,8 +39,6 @@
|
|||
|
||||
#define GST_CAT_DEFAULT GST_CAT_PLUGIN_LOADING
|
||||
|
||||
static void gst_plugin_feature_class_init (GstPluginFeatureClass * klass);
|
||||
static void gst_plugin_feature_init (GstPluginFeature * feature);
|
||||
static void gst_plugin_feature_finalize (GObject * object);
|
||||
|
||||
/* static guint gst_plugin_feature_signals[LAST_SIGNAL] = { 0 }; */
|
||||
|
@ -60,7 +58,7 @@ gst_plugin_feature_class_init (GstPluginFeatureClass * klass)
|
|||
static void
|
||||
gst_plugin_feature_init (GstPluginFeature * feature)
|
||||
{
|
||||
|
||||
/* do nothing, needed because of G_DEFINE_TYPE */
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -69,7 +69,6 @@
|
|||
GST_DEBUG_CATEGORY_STATIC (gst_query_debug);
|
||||
#define GST_CAT_DEFAULT gst_query_debug
|
||||
|
||||
static void gst_query_init (GTypeInstance * instance, gpointer g_class);
|
||||
static void gst_query_class_init (gpointer g_class, gpointer class_data);
|
||||
static void gst_query_finalize (GstQuery * query);
|
||||
static GstQuery *_gst_query_copy (GstQuery * query);
|
||||
|
@ -174,7 +173,7 @@ gst_query_get_type (void)
|
|||
NULL,
|
||||
sizeof (GstQuery),
|
||||
0,
|
||||
gst_query_init,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -207,12 +206,6 @@ gst_query_finalize (GstQuery * query)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gst_query_init (GTypeInstance * instance, gpointer g_class)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static GstQuery *
|
||||
_gst_query_copy (GstQuery * query)
|
||||
{
|
||||
|
|
|
@ -122,8 +122,6 @@ enum
|
|||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
static void gst_registry_class_init (GstRegistryClass * klass);
|
||||
static void gst_registry_init (GstRegistry * registry);
|
||||
static void gst_registry_finalize (GObject * object);
|
||||
|
||||
static guint gst_registry_signals[LAST_SIGNAL] = { 0 };
|
||||
|
@ -177,6 +175,7 @@ gst_registry_class_init (GstRegistryClass * klass)
|
|||
static void
|
||||
gst_registry_init (GstRegistry * registry)
|
||||
{
|
||||
/* do nothing, needed because of G_DEFINE_TYPE */
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -85,7 +85,7 @@ gst_uri_handler_base_init (gpointer g_class)
|
|||
{
|
||||
static gboolean initialized = FALSE;
|
||||
|
||||
if (!initialized) {
|
||||
if (G_UNLIKELY (!initialized)) {
|
||||
|
||||
/**
|
||||
* GstURIHandler::new-uri:
|
||||
|
|
Loading…
Reference in a new issue