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/gstwarp.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/gstwarp.c')
-rw-r--r-- | gst/effectv/gstwarp.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/gst/effectv/gstwarp.c b/gst/effectv/gstwarp.c index f4bb281f..4e03eb74 100644 --- a/gst/effectv/gstwarp.c +++ b/gst/effectv/gstwarp.c @@ -73,16 +73,12 @@ struct _GstWarpTVClass }; /* elementfactory information */ -GstElementDetails gst_warptv_details = { +static GstElementDetails gst_warptv_details = GST_ELEMENT_DETAILS ( "WarpTV", "Filter/Video/Effect", - "LGPL", "WarpTV does realtime goo'ing of the video input", - VERSION, - "Sam Lantinga <slouken@devolution.com>", - "Wim Taymans <wim.taymans@chello.be>, " - "(C) 2001 FUKUCHI Kentarou", -}; + "Sam Lantinga <slouken@devolution.com>" +); /* Filter signals and args */ @@ -97,6 +93,7 @@ enum ARG_0, }; +static void gst_warptv_base_init (gpointer g_class); static void gst_warptv_class_init (GstWarpTVClass * klass); static void gst_warptv_init (GstWarpTV * filter); @@ -118,7 +115,8 @@ GType gst_warptv_get_type (void) if (!warptv_type) { static const GTypeInfo warptv_info = { - sizeof (GstWarpTVClass), NULL, + sizeof (GstWarpTVClass), + gst_warptv_base_init, NULL, (GClassInitFunc) gst_warptv_class_init, NULL, @@ -134,6 +132,17 @@ GType gst_warptv_get_type (void) } static void +gst_warptv_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_warptv_details); +} + +static void gst_warptv_class_init (GstWarpTVClass * klass) { GObjectClass *gobject_class; |