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/gstedge.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/gstedge.c')
-rw-r--r-- | gst/effectv/gstedge.c | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/gst/effectv/gstedge.c b/gst/effectv/gstedge.c index 69f8c153d..f22fe48e2 100644 --- a/gst/effectv/gstedge.c +++ b/gst/effectv/gstedge.c @@ -60,15 +60,12 @@ struct _GstEdgeTVClass }; /* elementfactory information */ -GstElementDetails gst_edgetv_details = { +static GstElementDetails gst_edgetv_details = GST_ELEMENT_DETAILS ( "EdgeTV", "Filter/Video/Effect", - "LGPL", - "Aply edge detect on video", - VERSION, - "Wim Taymans <wim.taymans@chello.be>", - "(C) 2001 FUKUCHI Kentarou", -}; + "Apply edge detect on video", + "Wim Taymans <wim.taymans@chello.be>" +); /* Filter signals and args */ @@ -83,6 +80,7 @@ enum ARG_0, }; +static void gst_edgetv_base_init (gpointer g_class); static void gst_edgetv_class_init (GstEdgeTVClass * klass); static void gst_edgetv_init (GstEdgeTV * filter); @@ -102,7 +100,8 @@ GType gst_edgetv_get_type (void) if (!edgetv_type) { static const GTypeInfo edgetv_info = { - sizeof (GstEdgeTVClass), NULL, + sizeof (GstEdgeTVClass), + gst_edgetv_base_init, NULL, (GClassInitFunc) gst_edgetv_class_init, NULL, @@ -118,6 +117,17 @@ GType gst_edgetv_get_type (void) } static void +gst_edgetv_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_edgetv_details); +} + +static void gst_edgetv_class_init (GstEdgeTVClass * klass) { GObjectClass *gobject_class; |