summaryrefslogtreecommitdiffstats
path: root/gst/filter/gstbpwsinc.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/gstbpwsinc.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/gstbpwsinc.c')
-rw-r--r--gst/filter/gstbpwsinc.c27
1 files changed, 20 insertions, 7 deletions
diff --git a/gst/filter/gstbpwsinc.c b/gst/filter/gstbpwsinc.c
index be9feec7..fe721f39 100644
--- a/gst/filter/gstbpwsinc.c
+++ b/gst/filter/gstbpwsinc.c
@@ -39,15 +39,13 @@
#include <string.h> /* memmove */
/* elementfactory information */
-GstElementDetails gst_bpwsinc_details = {
+static GstElementDetails gst_bpwsinc_details = GST_ELEMENT_DETAILS (
"BPWSinc",
"Filter/Audio/Effect",
- "LGPL",
"Band-Pass Windowed sinc filter",
- VERSION,
- "Thomas <thomas@apestaart.org>",
- "(C) 2002 Steven W. Smith",
-};
+ "Thomas <thomas@apestaart.org>, "
+ "Steven W. Smith"
+);
enum {
/* FILL ME */
@@ -95,6 +93,7 @@ struct _GstBPWSincClass
GstElementClass parent_class;
};
+static void gst_bpwsinc_base_init (gpointer g_class);
static void gst_bpwsinc_class_init (GstBPWSincClass * klass);
static void gst_bpwsinc_init (GstBPWSinc * filter);
@@ -117,7 +116,9 @@ GType gst_bpwsinc_get_type (void)
if (!bpwsinc_type) {
static const GTypeInfo bpwsinc_info = {
- sizeof (GstBPWSincClass), NULL, NULL,
+ sizeof (GstBPWSincClass),
+ gst_bpwsinc_base_init,
+ NULL,
(GClassInitFunc) gst_bpwsinc_class_init, NULL, NULL,
sizeof (GstBPWSinc), 0,
(GInstanceInitFunc) gst_bpwsinc_init,
@@ -130,6 +131,18 @@ GType gst_bpwsinc_get_type (void)
}
static void
+gst_bpwsinc_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_bpwsinc_details);
+}
+
+static void
gst_bpwsinc_class_init (GstBPWSincClass * klass)
{
GObjectClass *gobject_class;