diff options
author | Mathis Hofer <mathis.hofer@dreamlab.net> | 2006-07-10 14:42:15 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-07-10 14:42:15 +0000 |
commit | 8534b5e71e048c6fef788c6a561881f71972eee0 (patch) | |
tree | 6a48ba407cebacd989bf982374be9ec0366a39b1 /gst/filter/gstfilter.c | |
parent | 4c58388cd50613f25ed1163071064afffb1848d3 (diff) | |
download | gst-plugins-bad-8534b5e71e048c6fef788c6a561881f71972eee0.tar.gz gst-plugins-bad-8534b5e71e048c6fef788c6a561881f71972eee0.tar.bz2 gst-plugins-bad-8534b5e71e048c6fef788c6a561881f71972eee0.zip |
Ported the gstfilter plugin to GStreamer 0.10.
Original commit message from CVS:
Patch by: Mathis Hofer <mathis dot hofer at dreamlab dot net>
* configure.ac:
* gst/filter/Makefile.am:
* gst/filter/gstbpwsinc.c: (gst_bpwsinc_dispose),
(gst_bpwsinc_base_init), (gst_bpwsinc_class_init),
(gst_bpwsinc_init), (bpwsinc_set_caps), (bpwsinc_transform_ip),
(bpwsinc_set_property), (bpwsinc_get_property):
* gst/filter/gstfilter.c: (plugin_init):
* gst/filter/gstfilter.h:
* gst/filter/gstiir.c: (gst_iir_dispose), (gst_iir_base_init),
(gst_iir_class_init), (gst_iir_init), (iir_set_caps),
(iir_transform_ip), (iir_set_property), (iir_get_property):
* gst/filter/gstlpwsinc.c: (gst_lpwsinc_dispose),
(gst_lpwsinc_base_init), (gst_lpwsinc_class_init),
(gst_lpwsinc_init), (lpwsinc_set_caps), (lpwsinc_transform_ip),
(lpwsinc_set_property), (lpwsinc_get_property):
Ported the gstfilter plugin to GStreamer 0.10.
Diffstat (limited to 'gst/filter/gstfilter.c')
-rw-r--r-- | gst/filter/gstfilter.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/gst/filter/gstfilter.c b/gst/filter/gstfilter.c index e915de75..572d6475 100644 --- a/gst/filter/gstfilter.c +++ b/gst/filter/gstfilter.c @@ -1,6 +1,9 @@ -/* GStreamer +/* -*- c-basic-offset: 2 -*- + * + * GStreamer * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> - * 2000 Wim Taymans <wtay@chello.be> + * 2000 Wim Taymans <wtay@chello.be> + * 2006 Dreamlab Technologies Ltd. <mathis.hofer@dreamlab.net> * * gstfilter.c: element for filter plug-ins * @@ -25,7 +28,7 @@ #endif #include "gstfilter.h" #include <gst/audio/audio.h> - +#include <gst/controller/gstcontroller.h> struct _elements_entry { @@ -40,21 +43,12 @@ static struct _elements_entry _elements[] = { {NULL, 0}, }; -GstStaticPadTemplate gst_filter_src_template = GST_STATIC_PAD_TEMPLATE ("src", - GST_PAD_SRC, - GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_AUDIO_FLOAT_STANDARD_PAD_TEMPLATE_CAPS) - ); - -GstStaticPadTemplate gst_filter_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", - GST_PAD_SINK, - GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_AUDIO_FLOAT_STANDARD_PAD_TEMPLATE_CAPS) - ); - static gboolean plugin_init (GstPlugin * plugin) { + /* initialize gst controller library */ + gst_controller_init (NULL, NULL); + gint i = 0; while (_elements[i].name) { |