diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2003-11-02 12:48:08 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2003-11-02 12:48:08 +0000 |
commit | 9e42080f8d894ae130b32cb34143f7df31e8ce10 (patch) | |
tree | eab3bb158391bc9cf057348c1f2bf26cfbb072e2 /gst/effectv/gstaging.c | |
parent | c4ec05bbd7db334984dd034213948720c1a37538 (diff) |
Updated for the new plugin loading code
Original commit message from CVS:
Updated for the new plugin loading code
Diffstat (limited to 'gst/effectv/gstaging.c')
-rw-r--r-- | gst/effectv/gstaging.c | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/gst/effectv/gstaging.c b/gst/effectv/gstaging.c index 003014b7..c2e90ee2 100644 --- a/gst/effectv/gstaging.c +++ b/gst/effectv/gstaging.c @@ -25,6 +25,7 @@ #include "config.h" #endif #include <string.h> + #include "gsteffectv.h" #define GST_TYPE_AGINGTV \ @@ -78,15 +79,12 @@ struct _GstAgingTVClass }; /* elementfactory information */ -GstElementDetails gst_agingtv_details = { +static GstElementDetails gst_agingtv_details = GST_ELEMENT_DETAILS ( "AgingTV", "Filter/Video/Effect", - "LGPL", - "Aply aging effect on video", - VERSION, - "Wim Taymans <wim.taymans@chello.be>", - "(C) 2001 FUKUCHI Kentarou", -}; + "Apply aging effect on video", + "Wim Taymans <wim.taymans@chello.be>" +); /* Filter signals and args */ @@ -101,6 +99,7 @@ enum ARG_0, }; +static void gst_agingtv_base_init (gpointer g_class); static void gst_agingtv_class_init (GstAgingTVClass * klass); static void gst_agingtv_init (GstAgingTV * filter); @@ -122,7 +121,8 @@ GType gst_agingtv_get_type (void) if (!agingtv_type) { static const GTypeInfo agingtv_info = { - sizeof (GstAgingTVClass), NULL, + sizeof (GstAgingTVClass), + gst_agingtv_base_init, NULL, (GClassInitFunc) gst_agingtv_class_init, NULL, @@ -138,6 +138,17 @@ GType gst_agingtv_get_type (void) } static void +gst_agingtv_base_init (gpointer g_class) +{ + GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); + + gst_element_class_add_pad_template (element_class, gst_effectv_src_factory ()); + gst_element_class_add_pad_template (element_class, gst_effectv_sink_factory ()); + + gst_element_class_set_details (element_class, &gst_agingtv_details); +} + +static void gst_agingtv_class_init (GstAgingTVClass * klass) { GObjectClass *gobject_class; |