summaryrefslogtreecommitdiffstats
path: root/gst/filter/gstlpwsinc.c
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2003-11-02 14:09:39 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2003-11-02 14:09:39 +0000
commit75658894acd6eb4eb1d6ae9c808c20fde6154aec (patch)
treedcdf2b4c59bb80b0a57c826f199f4efb6e9a5250 /gst/filter/gstlpwsinc.c
parentbd4206da038fa8d66757777f33c6ffcb26f9e824 (diff)
downloadgst-plugins-bad-75658894acd6eb4eb1d6ae9c808c20fde6154aec.tar.gz
gst-plugins-bad-75658894acd6eb4eb1d6ae9c808c20fde6154aec.tar.bz2
gst-plugins-bad-75658894acd6eb4eb1d6ae9c808c20fde6154aec.zip
Updated for the new plugin loading code
Original commit message from CVS: Updated for the new plugin loading code
Diffstat (limited to 'gst/filter/gstlpwsinc.c')
-rw-r--r--gst/filter/gstlpwsinc.c27
1 files changed, 20 insertions, 7 deletions
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 <math.h> /* M_PI */
#include <string.h> /* 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 <thomas@apestaart.org>",
- "(C) 2002 Steven W. Smith",
-};
+ "Thomas <thomas@apestaart.org>, "
+ "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,
@@ -127,6 +128,18 @@ GType gst_lpwsinc_get_type (void)
}
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)
{
GObjectClass *gobject_class;