diff options
author | Andy Wingo <wingo@pobox.com> | 2005-08-28 17:59:20 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2005-08-28 17:59:20 +0000 |
commit | 2ef9f6835236fe4ffadc8457c556f1534658378f (patch) | |
tree | 33fced794fc32f7ad82faa895e342ce6db03365e /ext/ladspa/gstsignalprocessor.c | |
parent | cfcd78d3d9248b7ca55a716da4fbb2b47c780dca (diff) | |
download | gst-plugins-bad-2ef9f6835236fe4ffadc8457c556f1534658378f.tar.gz gst-plugins-bad-2ef9f6835236fe4ffadc8457c556f1534658378f.tar.bz2 gst-plugins-bad-2ef9f6835236fe4ffadc8457c556f1534658378f.zip |
Updates for two-arg init from GST_BOILERPLATE.
Original commit message from CVS:
2005-08-28 Andy Wingo <wingo@pobox.com>
* Updates for two-arg init from GST_BOILERPLATE.
* ext/ladspa/gstsignalprocessor.c (gst_signal_processor_init): Use
the second arg for the class, because G_OBJECT_GET_CLASS (self)
returns the wrong thing.
(gst_signal_processor_add_pad_from_template): Make pads of the
right type.
* ext/ladspa/gstladspa.c (gst_ladspa_class_get_param_spec): Make
writable param specs G_PARAM_CONSTRUCT so default values work.
(gst_ladspa_init): Use the second arg for the class.
Diffstat (limited to 'ext/ladspa/gstsignalprocessor.c')
-rw-r--r-- | ext/ladspa/gstsignalprocessor.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/ext/ladspa/gstsignalprocessor.c b/ext/ladspa/gstsignalprocessor.c index 7fea9a90..7b79dde2 100644 --- a/ext/ladspa/gstsignalprocessor.c +++ b/ext/ladspa/gstsignalprocessor.c @@ -186,8 +186,9 @@ gst_signal_processor_add_pad_from_template (GstSignalProcessor * self, { GstPad *new; - new = g_object_new (GST_TYPE_PAD, "name", GST_OBJECT_NAME (templ), - "direction", templ->direction, "template", templ, NULL); + new = g_object_new (GST_TYPE_SIGNAL_PROCESSOR_PAD, + "name", GST_OBJECT_NAME (templ), "direction", templ->direction, + "template", templ, NULL); GST_SIGNAL_PROCESSOR_PAD (new)->index = GST_SIGNAL_PROCESSOR_PAD_TEMPLATE (templ)->index; @@ -212,17 +213,13 @@ gst_signal_processor_add_pad_from_template (GstSignalProcessor * self, } static void -gst_signal_processor_init (GstSignalProcessor * self) +gst_signal_processor_init (GstSignalProcessor * self, + GstSignalProcessorClass * klass) { - GstSignalProcessorClass *klass; GList *templates; - klass = GST_SIGNAL_PROCESSOR_GET_CLASS (self); - - GST_DEBUG ("gst_signal_processor_init"); - templates = - gst_element_class_get_pad_template_list (GST_ELEMENT_GET_CLASS (self)); + gst_element_class_get_pad_template_list (GST_ELEMENT_CLASS (klass)); while (templates) { GstPadTemplate *templ = GST_PAD_TEMPLATE (templates->data); |