summaryrefslogtreecommitdiffstats
path: root/gst/goom
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-11-02 17:41:07 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-11-02 17:41:07 +0000
commit6c3a7baa8d7a2db02ebe978bc508f18b938621b3 (patch)
tree3af2372ccc0bbd905cb67a0722e45ddc97e694e8 /gst/goom
parent8c8cebf1101ff4241624b732b515490e9dd8c92d (diff)
aaaaaaaaaaaaaaaaaaaah
Original commit message from CVS: aaaaaaaaaaaaaaaaaaaah
Diffstat (limited to 'gst/goom')
-rw-r--r--gst/goom/gstgoom.c49
1 files changed, 27 insertions, 22 deletions
diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c
index 31a9f05b..a634633a 100644
--- a/gst/goom/gstgoom.c
+++ b/gst/goom/gstgoom.c
@@ -63,11 +63,8 @@ GType gst_goom_get_type(void);
static GstElementDetails gst_goom_details = {
"GOOM: what a GOOM!",
"Visualization",
- "LGPL",
"Takes frames of data and outputs video frames using the GOOM filter",
- VERSION,
- "Wim Taymans <wim.taymans@chello.be>",
- "(C) 2002",
+ "Wim Taymans <wim.taymans@chello.be>"
};
/* signals and args */
@@ -111,6 +108,7 @@ GST_PAD_TEMPLATE_FACTORY (sink_template,
static void gst_goom_class_init (GstGOOMClass *klass);
+static void gst_goom_base_init (GstGOOMClass *klass);
static void gst_goom_init (GstGOOM *goom);
static void gst_goom_dispose (GObject *object);
@@ -132,7 +130,7 @@ gst_goom_get_type (void)
if (!type) {
static const GTypeInfo info = {
sizeof (GstGOOMClass),
- NULL,
+ (GBaseInitFunc) gst_goom_base_init,
NULL,
(GClassInitFunc) gst_goom_class_init,
NULL,
@@ -147,6 +145,18 @@ gst_goom_get_type (void)
}
static void
+gst_goom_base_init (GstGOOMClass *klass)
+{
+ GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
+
+ gst_element_class_set_details (element_class, &gst_goom_details);
+ gst_element_class_add_pad_template (element_class,
+ GST_PAD_TEMPLATE_GET (sink_template));
+ gst_element_class_add_pad_template (element_class,
+ GST_PAD_TEMPLATE_GET (src_template));
+}
+
+static void
gst_goom_class_init(GstGOOMClass *klass)
{
GObjectClass *gobject_class;
@@ -381,26 +391,21 @@ gst_goom_change_state (GstElement *element)
}
static gboolean
-plugin_init (GModule *module, GstPlugin *plugin)
+plugin_init (GstPlugin *plugin)
{
- GstElementFactory *factory;
-
- /* create an elementfactory for the goom element */
- factory = gst_element_factory_new("goom",GST_TYPE_GOOM,
- &gst_goom_details);
- g_return_val_if_fail(factory != NULL, FALSE);
-
- gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_template));
- gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (sink_template));
-
- gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
-
- return TRUE;
+ return gst_element_register (plugin, "goom",
+ GST_RANK_NONE, GST_TYPE_GOOM);
}
-GstPluginDesc plugin_desc = {
+GST_PLUGIN_DEFINE (
GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"goom",
- plugin_init
-};
+ "GOOM visualization filter",
+ plugin_init,
+ VERSION,
+ GST_LICENSE,
+ GST_COPYRIGHT,
+ GST_PACKAGE,
+ GST_ORIGIN
+)