summaryrefslogtreecommitdiffstats
path: root/gst/effectv/gstrev.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/effectv/gstrev.c')
-rw-r--r--gst/effectv/gstrev.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/gst/effectv/gstrev.c b/gst/effectv/gstrev.c
index 001ab5dd..e7566469 100644
--- a/gst/effectv/gstrev.c
+++ b/gst/effectv/gstrev.c
@@ -85,16 +85,12 @@ struct _GstRevTVClass
};
/* elementfactory information */
-GstElementDetails gst_revtv_details = {
+static GstElementDetails gst_revtv_details = GST_ELEMENT_DETAILS (
"RevTV",
"Filter/Video/Effect",
- "LGPL",
"A video waveform monitor for each line of video processed",
- VERSION,
- "Wim Taymans <wim.taymans@chello.be>",
- "(C) 2001 FUKUCHI Kentarou,"
- "(c) 2002 Ed Tannenbaum",
-};
+ "Wim Taymans <wim.taymans@chello.be>"
+);
/* Filter signals and args */
@@ -112,6 +108,7 @@ enum
ARG_GAIN,
};
+static void gst_revtv_base_init (gpointer g_class);
static void gst_revtv_class_init (GstRevTVClass * klass);
static void gst_revtv_init (GstRevTV * filter);
@@ -131,7 +128,8 @@ GType gst_revtv_get_type (void)
if (!revtv_type) {
static const GTypeInfo revtv_info = {
- sizeof (GstRevTVClass), NULL,
+ sizeof (GstRevTVClass),
+ gst_revtv_base_init,
NULL,
(GClassInitFunc) gst_revtv_class_init,
NULL,
@@ -147,6 +145,17 @@ GType gst_revtv_get_type (void)
}
static void
+gst_revtv_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_revtv_details);
+}
+
+static void
gst_revtv_class_init (GstRevTVClass * klass)
{
GObjectClass *gobject_class;