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/gstvertigo.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/gstvertigo.c')
-rw-r--r-- | gst/effectv/gstvertigo.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/gst/effectv/gstvertigo.c b/gst/effectv/gstvertigo.c index 45a2b8fd..f1006b86 100644 --- a/gst/effectv/gstvertigo.c +++ b/gst/effectv/gstvertigo.c @@ -69,15 +69,12 @@ struct _GstVertigoTVClass }; /* elementfactory information */ -GstElementDetails gst_vertigotv_details = { +static GstElementDetails gst_vertigotv_details = GST_ELEMENT_DETAILS ( "VertigoTV", "Filter/Video/Effect", - "LGPL", "A loopback alpha blending effector with rotating and scaling", - VERSION, - "Wim Taymans <wim.taymans@chello.be>", - "(C) 2001 FUKUCHI Kentarou", -}; + "Wim Taymans <wim.taymans@chello.be>" +); /* Filter signals and args */ @@ -95,6 +92,7 @@ enum ARG_ZOOM_SPEED, }; +static void gst_vertigotv_base_init (gpointer g_class); static void gst_vertigotv_class_init (GstVertigoTVClass * klass); static void gst_vertigotv_init (GstVertigoTV * filter); @@ -116,7 +114,8 @@ GType gst_vertigotv_get_type (void) if (!vertigotv_type) { static const GTypeInfo vertigotv_info = { - sizeof (GstVertigoTVClass), NULL, + sizeof (GstVertigoTVClass), + gst_vertigotv_base_init, NULL, (GClassInitFunc) gst_vertigotv_class_init, NULL, @@ -132,6 +131,17 @@ GType gst_vertigotv_get_type (void) } static void +gst_vertigotv_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_vertigotv_details); +} + +static void gst_vertigotv_class_init (GstVertigoTVClass * klass) { GObjectClass *gobject_class; |