From 75658894acd6eb4eb1d6ae9c808c20fde6154aec Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sun, 2 Nov 2003 14:09:39 +0000 Subject: Updated for the new plugin loading code Original commit message from CVS: Updated for the new plugin loading code --- gst/filter/gstlpwsinc.c | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'gst/filter/gstlpwsinc.c') diff --git a/gst/filter/gstlpwsinc.c b/gst/filter/gstlpwsinc.c index 18bebef7..1ed5078d 100644 --- a/gst/filter/gstlpwsinc.c +++ b/gst/filter/gstlpwsinc.c @@ -38,15 +38,13 @@ #include /* M_PI */ #include /* memmove */ -GstElementDetails gst_lpwsinc_details = { +static GstElementDetails gst_lpwsinc_details = GST_ELEMENT_DETAILS ( "LPWSinc", "Filter/Audio/Effect", - "LGPL", "Low-pass Windowed sinc filter", - VERSION, - "Thomas ", - "(C) 2002 Steven W. Smith", -}; + "Thomas , " + "Steven W. Smith" +); enum { /* FILL ME */ @@ -92,6 +90,7 @@ struct _GstLPWSincClass GstElementClass parent_class; }; +static void gst_lpwsinc_base_init (gpointer g_class); static void gst_lpwsinc_class_init (GstLPWSincClass * klass); static void gst_lpwsinc_init (GstLPWSinc * filter); @@ -114,7 +113,9 @@ GType gst_lpwsinc_get_type (void) if (!lpwsinc_type) { static const GTypeInfo lpwsinc_info = { - sizeof (GstLPWSincClass), NULL, NULL, + sizeof (GstLPWSincClass), + gst_lpwsinc_base_init, + NULL, (GClassInitFunc) gst_lpwsinc_class_init, NULL, NULL, sizeof (GstLPWSinc), 0, (GInstanceInitFunc) gst_lpwsinc_init, @@ -126,6 +127,18 @@ GType gst_lpwsinc_get_type (void) return lpwsinc_type; } +static void +gst_lpwsinc_base_init (gpointer g_class) +{ + GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); + + /* register src pads */ + gst_element_class_add_pad_template (element_class, gst_filter_src_factory ()); + gst_element_class_add_pad_template (element_class, gst_filter_sink_factory ()); + + gst_element_class_set_details (element_class, &gst_lpwsinc_details); +} + static void gst_lpwsinc_class_init (GstLPWSincClass * klass) { -- cgit v1.2.1