summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2005-08-28 17:59:20 +0000
committerAndy Wingo <wingo@pobox.com>2005-08-28 17:59:20 +0000
commit99fc32962a35d65cce34a5f59948502eee1ac6b4 (patch)
tree56e3cb1fa8ab36ac98c0c5fc46e6266aaaa2c4b1 /gst
parentb5c9e10399d4b33655e330d806c0a299e927bba0 (diff)
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 'gst')
-rw-r--r--gst/autodetect/gstautoaudiosink.c3
-rw-r--r--gst/autodetect/gstautovideosink.c3
-rw-r--r--gst/debug/breakmydata.c2
-rw-r--r--gst/debug/progressreport.c5
-rw-r--r--gst/debug/testplugin.c4
-rw-r--r--gst/fdsrc/gstfdsrc.c2
-rw-r--r--gst/level/gstlevel.c2
-rw-r--r--gst/multipart/multipartdemux.c5
-rw-r--r--gst/oldcore/gstaggregator.c2
-rw-r--r--gst/oldcore/gstfdsink.c2
-rw-r--r--gst/oldcore/gstmultifilesrc.c3
-rw-r--r--gst/oldcore/gstpipefilter.c2
-rw-r--r--gst/oldcore/gstshaper.c2
-rw-r--r--gst/oldcore/gststatistics.c2
-rw-r--r--gst/videobox/gstvideobox.c2
15 files changed, 23 insertions, 18 deletions
diff --git a/gst/autodetect/gstautoaudiosink.c b/gst/autodetect/gstautoaudiosink.c
index 9d62c7de..f5462495 100644
--- a/gst/autodetect/gstautoaudiosink.c
+++ b/gst/autodetect/gstautoaudiosink.c
@@ -83,7 +83,8 @@ gst_auto_audio_sink_reset (GstAutoAudioSink * sink)
}
static void
-gst_auto_audio_sink_init (GstAutoAudioSink * sink)
+gst_auto_audio_sink_init (GstAutoAudioSink * sink,
+ GstAutoAudioSinkClass * g_class)
{
sink->pad = gst_ghost_pad_new_notarget ("sink", GST_PAD_SINK);
gst_element_add_pad (GST_ELEMENT (sink), sink->pad);
diff --git a/gst/autodetect/gstautovideosink.c b/gst/autodetect/gstautovideosink.c
index ba22a21f..76ec7500 100644
--- a/gst/autodetect/gstautovideosink.c
+++ b/gst/autodetect/gstautovideosink.c
@@ -83,7 +83,8 @@ gst_auto_video_sink_reset (GstAutoVideoSink * sink)
}
static void
-gst_auto_video_sink_init (GstAutoVideoSink * sink)
+gst_auto_video_sink_init (GstAutoVideoSink * sink,
+ GstAutoVideoSinkClass * g_class)
{
sink->pad = gst_ghost_pad_new_notarget ("sink", GST_PAD_SINK);
gst_element_add_pad (GST_ELEMENT (sink), sink->pad);
diff --git a/gst/debug/breakmydata.c b/gst/debug/breakmydata.c
index bfc6ddfc..05334e93 100644
--- a/gst/debug/breakmydata.c
+++ b/gst/debug/breakmydata.c
@@ -253,7 +253,7 @@ gst_break_my_data_change_state (GstElement * element)
}
gboolean
-gst_break_my_data_plugin_init (GstPlugin * plugin)
+gst_break_my_data_plugin_init (GstPlugin * plugin, GstPluginClass * g_class)
{
if (!gst_element_register (plugin, "breakmydata", GST_RANK_NONE,
GST_TYPE_BREAK_MY_DATA))
diff --git a/gst/debug/progressreport.c b/gst/debug/progressreport.c
index 9d8a232c..023991cd 100644
--- a/gst/debug/progressreport.c
+++ b/gst/debug/progressreport.c
@@ -128,7 +128,8 @@ gst_progressreport_class_init (GstProgressReportClass * g_class)
}
static void
-gst_progressreport_init (GstProgressReport * instance)
+gst_progressreport_init (GstProgressReport * instance,
+ GstProgressReportClass * g_class)
{
GstProgressReport *progressreport = GST_PROGRESSREPORT (instance);
@@ -274,7 +275,7 @@ gst_progressreport_chain (GstPad * pad, GstData * _data)
}
gboolean
-gst_progressreport_plugin_init (GstPlugin * plugin)
+gst_progressreport_plugin_init (GstPlugin * plugin, GstPluginClass * g_class)
{
return gst_element_register (plugin, "progressreport", GST_RANK_NONE,
GST_TYPE_PROGRESSREPORT);
diff --git a/gst/debug/testplugin.c b/gst/debug/testplugin.c
index 26c5fa99..2936a5e4 100644
--- a/gst/debug/testplugin.c
+++ b/gst/debug/testplugin.c
@@ -105,7 +105,7 @@ gst_test_class_init (GstTestClass * klass)
}
static void
-gst_test_init (GstTest * test)
+gst_test_init (GstTest * test, GstTestClass * g_class)
{
GstTestClass *klass;
guint i;
@@ -249,7 +249,7 @@ gst_test_get_property (GObject * object, guint prop_id, GValue * value,
}
gboolean
-gst_test_plugin_init (GstPlugin * plugin)
+gst_test_plugin_init (GstPlugin * plugin, GstPluginClass * g_class)
{
if (!gst_element_register (plugin, "testsink", GST_RANK_NONE, GST_TYPE_TEST))
return FALSE;
diff --git a/gst/fdsrc/gstfdsrc.c b/gst/fdsrc/gstfdsrc.c
index 8b4664ab..bb322ef5 100644
--- a/gst/fdsrc/gstfdsrc.c
+++ b/gst/fdsrc/gstfdsrc.c
@@ -134,7 +134,7 @@ gst_fdsrc_class_init (GstFdSrcClass * klass)
}
static void
-gst_fdsrc_init (GstFdSrc * fdsrc)
+gst_fdsrc_init (GstFdSrc * fdsrc, GstFdSrcClass * g_class)
{
// TODO set live only if it's actually a live source
gst_base_src_set_live (GST_BASE_SRC (fdsrc), TRUE);
diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c
index 8730cd0c..e4fa86c0 100644
--- a/gst/level/gstlevel.c
+++ b/gst/level/gstlevel.c
@@ -135,7 +135,7 @@ gst_level_class_init (GstLevelClass * klass)
}
static void
-gst_level_init (GstLevel * filter)
+gst_level_init (GstLevel * filter, GstLevelClass * g_class)
{
filter->CS = NULL;
filter->peak = NULL;
diff --git a/gst/multipart/multipartdemux.c b/gst/multipart/multipartdemux.c
index 55fe85ef..938cc097 100644
--- a/gst/multipart/multipartdemux.c
+++ b/gst/multipart/multipartdemux.c
@@ -152,7 +152,8 @@ gst_multipart_demux_class_init (GstMultipartDemuxClass * klass)
}
static void
-gst_multipart_demux_init (GstMultipartDemux * multipart)
+gst_multipart_demux_init (GstMultipartDemux * multipart,
+ GstMultipartDemuxClass * g_class)
{
/* create the sink pad */
multipart->sinkpad =
@@ -368,7 +369,7 @@ gst_multipart_demux_change_state (GstElement * element)
}
gboolean
-gst_multipart_demux_plugin_init (GstPlugin * plugin)
+gst_multipart_demux_plugin_init (GstPlugin * plugin, GstPluginClass * g_class)
{
GST_DEBUG_CATEGORY_INIT (gst_multipart_demux_debug,
"multipartdemux", 0, "multipart demuxer");
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),
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c
index f1ebe4d9..6d6d1b92 100644
--- a/gst/videobox/gstvideobox.c
+++ b/gst/videobox/gstvideobox.c
@@ -215,7 +215,7 @@ gst_video_box_class_init (GstVideoBoxClass * klass)
}
static void
-gst_video_box_init (GstVideoBox * video_box)
+gst_video_box_init (GstVideoBox * video_box, GstVideoBoxClass * g_class)
{
video_box->box_right = DEFAULT_RIGHT;
video_box->box_left = DEFAULT_LEFT;