From 99fc32962a35d65cce34a5f59948502eee1ac6b4 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sun, 28 Aug 2005 17:59:20 +0000 Subject: Updates for two-arg init from GST_BOILERPLATE. Original commit message from CVS: 2005-08-28 Andy Wingo * 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. --- gst/oldcore/gstaggregator.c | 2 +- gst/oldcore/gstfdsink.c | 2 +- gst/oldcore/gstmultifilesrc.c | 3 ++- gst/oldcore/gstpipefilter.c | 2 +- gst/oldcore/gstshaper.c | 2 +- gst/oldcore/gststatistics.c | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) (limited to 'gst/oldcore') diff --git a/gst/oldcore/gstaggregator.c b/gst/oldcore/gstaggregator.c index 86d42543..d8dad7e2 100644 --- a/gst/oldcore/gstaggregator.c +++ b/gst/oldcore/gstaggregator.c @@ -161,7 +161,7 @@ gst_aggregator_class_init (GstAggregatorClass * klass) } static void -gst_aggregator_init (GstAggregator * aggregator) +gst_aggregator_init (GstAggregator * aggregator, GstAggregatorClass * g_class) { aggregator->srcpad = gst_pad_new_from_template (gst_static_pad_template_get (&srctemplate), diff --git a/gst/oldcore/gstfdsink.c b/gst/oldcore/gstfdsink.c index ee49bb83..1d2ad11c 100644 --- a/gst/oldcore/gstfdsink.c +++ b/gst/oldcore/gstfdsink.c @@ -97,7 +97,7 @@ gst_fdsink_class_init (GstFdSinkClass * klass) } static void -gst_fdsink_init (GstFdSink * fdsink) +gst_fdsink_init (GstFdSink * fdsink, GstFdSinkClass * g_class) { fdsink->sinkpad = gst_pad_new_from_template (gst_static_pad_template_get (&sinktemplate), diff --git a/gst/oldcore/gstmultifilesrc.c b/gst/oldcore/gstmultifilesrc.c index 6d88d972..593f66b5 100644 --- a/gst/oldcore/gstmultifilesrc.c +++ b/gst/oldcore/gstmultifilesrc.c @@ -125,7 +125,8 @@ gst_multifilesrc_class_init (GstMultiFileSrcClass * klass) } static void -gst_multifilesrc_init (GstMultiFileSrc * multifilesrc) +gst_multifilesrc_init (GstMultiFileSrc * multifilesrc, + GstMultiFileSrcClass * g_class) { /* GST_FLAG_SET (filesrc, GST_SRC_); */ diff --git a/gst/oldcore/gstpipefilter.c b/gst/oldcore/gstpipefilter.c index f1371893..731cc056 100644 --- a/gst/oldcore/gstpipefilter.c +++ b/gst/oldcore/gstpipefilter.c @@ -118,7 +118,7 @@ gst_pipefilter_class_init (GstPipefilterClass * klass) } static void -gst_pipefilter_init (GstPipefilter * pipefilter) +gst_pipefilter_init (GstPipefilter * pipefilter, GstPipefilterClass * g_class) { GST_FLAG_SET (pipefilter, GST_ELEMENT_DECOUPLED); diff --git a/gst/oldcore/gstshaper.c b/gst/oldcore/gstshaper.c index 50631fe8..9f8d4780 100644 --- a/gst/oldcore/gstshaper.c +++ b/gst/oldcore/gstshaper.c @@ -245,7 +245,7 @@ gst_shaper_request_new_pad (GstElement * element, GstPadTemplate * templ, } static void -gst_shaper_init (GstShaper * shaper) +gst_shaper_init (GstShaper * shaper, GstShaperClass * g_class) { gst_element_set_loop_function (GST_ELEMENT (shaper), gst_shaper_loop); diff --git a/gst/oldcore/gststatistics.c b/gst/oldcore/gststatistics.c index 7c8b747a..30e3bfcb 100644 --- a/gst/oldcore/gststatistics.c +++ b/gst/oldcore/gststatistics.c @@ -167,7 +167,7 @@ gst_statistics_class_init (GstStatisticsClass * klass) } static void -gst_statistics_init (GstStatistics * statistics) +gst_statistics_init (GstStatistics * statistics, GstStatisticsClass * g_class) { statistics->sinkpad = gst_pad_new_from_template (gst_static_pad_template_get (&sinktemplate), -- cgit