summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--ext/annodex/gstannodex.c1
-rw-r--r--ext/annodex/gstcmmldec.h2
-rw-r--r--ext/annodex/gstcmmlenc.h2
-rw-r--r--ext/annodex/gstcmmlparser.c2
-rw-r--r--ext/annodex/gstcmmlutils.c24
-rw-r--r--ext/dv/gstdvdec.c2
-rw-r--r--ext/flac/gstflacenc.c2
-rw-r--r--ext/gdk_pixbuf/gstgdkpixbuf.c3
-rw-r--r--ext/gdk_pixbuf/pixbufscale.h4
-rw-r--r--ext/jpeg/Makefile.am1
-rw-r--r--ext/jpeg/gstjpeg.c1
-rw-r--r--ext/jpeg/gstjpeg.h34
-rw-r--r--ext/jpeg/gstjpegdec.c1
-rw-r--r--ext/jpeg/gstjpegenc.c1
-rw-r--r--ext/wavpack/gstwavpackstreamreader.c2
-rw-r--r--ext/wavpack/gstwavpackstreamreader.h2
-rw-r--r--gst/debugutils/breakmydata.c1
-rw-r--r--gst/debugutils/gstnavseek.c1
-rw-r--r--gst/debugutils/rndbuffersize.c1
-rw-r--r--gst/debugutils/testplugin.c1
-rw-r--r--gst/deinterlace/tvtime/greedyh.asm2
-rw-r--r--gst/deinterlace/tvtime/greedyh.c2
-rw-r--r--gst/deinterlace/tvtime/mmx.h4
-rw-r--r--gst/deinterlace/tvtime/tomsmocomp/TomsMoCompAll.inc2
-rw-r--r--gst/goom/goom_fx.h2
-rw-r--r--gst/goom2k1/filters.c4
-rw-r--r--gst/goom2k1/filters.h2
-rw-r--r--gst/law/mulaw-conversion.c2
-rw-r--r--gst/matroska/matroska-demux.c1
-rw-r--r--gst/matroska/matroska-mux.c3
-rw-r--r--gst/multipart/multipart.c4
-rw-r--r--gst/multipart/multipartdemux.c2
-rw-r--r--gst/multipart/multipartdemux.h4
-rw-r--r--gst/multipart/multipartmux.c16
-rw-r--r--gst/multipart/multipartmux.h6
-rw-r--r--gst/qtdemux/gstrtpxqtdepay.c7
-rw-r--r--gst/rtp/fnv1hash.c2
-rw-r--r--gst/rtp/fnv1hash.h2
-rw-r--r--gst/rtp/gstasteriskh263.h2
-rw-r--r--gst/rtp/gstrtpL16depay.h2
-rw-r--r--gst/rtp/gstrtpL16pay.h2
-rw-r--r--gst/rtp/gstrtpac3depay.h2
-rw-r--r--gst/rtp/gstrtpamrdepay.h2
-rw-r--r--gst/rtp/gstrtpamrpay.h2
-rw-r--r--gst/rtp/gstrtpbvdepay.h2
-rw-r--r--gst/rtp/gstrtpbvpay.c32
-rw-r--r--gst/rtp/gstrtpbvpay.h4
-rw-r--r--gst/rtp/gstrtpceltdepay.h2
-rw-r--r--gst/rtp/gstrtpceltpay.h2
-rw-r--r--gst/rtp/gstrtpdvdepay.h1
-rw-r--r--gst/rtp/gstrtpdvpay.h2
-rw-r--r--gst/rtp/gstrtpg723depay.h2
-rw-r--r--gst/rtp/gstrtpg723pay.h4
-rw-r--r--gst/rtp/gstrtpg726depay.h2
-rw-r--r--gst/rtp/gstrtpg726pay.h2
-rw-r--r--gst/rtp/gstrtpg729depay.h2
-rw-r--r--gst/rtp/gstrtpg729pay.h2
-rw-r--r--gst/rtp/gstrtpgsmdepay.h2
-rw-r--r--gst/rtp/gstrtpgsmpay.h2
-rw-r--r--gst/rtp/gstrtph263depay.h2
-rw-r--r--gst/rtp/gstrtph263pay.h2
-rw-r--r--gst/rtp/gstrtph263pdepay.h2
-rw-r--r--gst/rtp/gstrtph263ppay.h2
-rw-r--r--gst/rtp/gstrtph264depay.h2
-rw-r--r--gst/rtp/gstrtph264pay.h2
-rw-r--r--gst/rtp/gstrtpilbcdepay.h2
-rw-r--r--gst/rtp/gstrtpilbcpay.c33
-rw-r--r--gst/rtp/gstrtpilbcpay.h4
-rw-r--r--gst/rtp/gstrtpj2kdepay.h2
-rw-r--r--gst/rtp/gstrtpj2kpay.h2
-rw-r--r--gst/rtp/gstrtpjpegdepay.h2
-rw-r--r--gst/rtp/gstrtpjpegpay.h2
-rw-r--r--gst/rtp/gstrtpmp1sdepay.h2
-rw-r--r--gst/rtp/gstrtpmp2tdepay.h2
-rw-r--r--gst/rtp/gstrtpmp2tpay.h2
-rw-r--r--gst/rtp/gstrtpmp4adepay.h2
-rw-r--r--gst/rtp/gstrtpmp4apay.h2
-rw-r--r--gst/rtp/gstrtpmp4gdepay.h2
-rw-r--r--gst/rtp/gstrtpmp4gpay.h2
-rw-r--r--gst/rtp/gstrtpmp4vdepay.h2
-rw-r--r--gst/rtp/gstrtpmp4vpay.h2
-rw-r--r--gst/rtp/gstrtpmpadepay.h2
-rw-r--r--gst/rtp/gstrtpmpapay.h2
-rw-r--r--gst/rtp/gstrtpmpvdepay.h2
-rw-r--r--gst/rtp/gstrtpmpvpay.h2
-rw-r--r--gst/rtp/gstrtppcmadepay.h2
-rw-r--r--gst/rtp/gstrtppcmapay.h2
-rw-r--r--gst/rtp/gstrtppcmudepay.h2
-rw-r--r--gst/rtp/gstrtppcmupay.h2
-rw-r--r--gst/rtp/gstrtpqdmdepay.h2
-rw-r--r--gst/rtp/gstrtpsirendepay.h2
-rw-r--r--gst/rtp/gstrtpsirenpay.c27
-rw-r--r--gst/rtp/gstrtpsirenpay.h4
-rw-r--r--gst/rtp/gstrtpspeexdepay.h2
-rw-r--r--gst/rtp/gstrtpspeexpay.h2
-rw-r--r--gst/rtp/gstrtpsv3vdepay.h2
-rw-r--r--gst/rtp/gstrtptheoradepay.h2
-rw-r--r--gst/rtp/gstrtptheorapay.h2
-rw-r--r--gst/rtp/gstrtpvorbisdepay.h2
-rw-r--r--gst/rtp/gstrtpvorbispay.h2
-rw-r--r--gst/rtp/gstrtpvrawdepay.h2
-rw-r--r--gst/rtp/gstrtpvrawpay.h2
-rw-r--r--gst/rtsp/gstrtpdec.c4
-rw-r--r--gst/rtsp/gstrtspsrc.c4
-rw-r--r--gst/smpte/gstmask.c2
-rw-r--r--gst/smpte/gstmask.h2
-rw-r--r--gst/videobox/gstvideobox.h2
-rw-r--r--gst/videocrop/gstvideocrop.h2
-rw-r--r--gst/videofilter/gstgamma.c2
-rw-r--r--gst/videofilter/gstvideobalance.c2
-rw-r--r--gst/videomixer/videomixer.c1
-rw-r--r--gst/videomixer/videomixer.h2
-rw-r--r--gst/wavenc/gstwavenc.h2
-rw-r--r--sys/v4l2/gstv4l2colorbalance.h2
-rw-r--r--sys/v4l2/gstv4l2object.c2
-rw-r--r--sys/v4l2/gstv4l2sink.c2
-rw-r--r--sys/v4l2/gstv4l2src.c2
-rw-r--r--sys/v4l2/gstv4l2tuner.h2
-rw-r--r--sys/v4l2/gstv4l2vidorient.h2
-rw-r--r--sys/ximage/ximageutil.c6
-rw-r--r--tests/check/elements/aspectratiocrop.c4
-rw-r--r--tests/check/elements/audioamplify.c8
-rw-r--r--tests/check/elements/audiochebband.c8
-rw-r--r--tests/check/elements/audiocheblimit.c8
-rw-r--r--tests/check/elements/audiodynamic.c8
-rw-r--r--tests/check/elements/audioecho.c6
-rw-r--r--tests/check/elements/audioinvert.c8
-rw-r--r--tests/check/elements/audiopanorama.c12
-rw-r--r--tests/check/elements/audiowsincband.c8
-rw-r--r--tests/check/elements/audiowsinclimit.c8
-rw-r--r--tests/check/elements/avimux.c12
-rw-r--r--tests/check/elements/avisubtitle.c12
-rw-r--r--tests/check/elements/cmmldec.c2
-rw-r--r--tests/check/elements/equalizer.c8
-rw-r--r--tests/check/elements/level.c8
-rw-r--r--tests/check/elements/matroskamux.c16
-rw-r--r--tests/check/elements/multifile.c2
-rw-r--r--tests/check/elements/rganalysis.c8
-rw-r--r--tests/check/elements/rglimiter.c9
-rw-r--r--tests/check/elements/rgvolume.c8
-rw-r--r--tests/check/elements/shapewipe.c2
-rw-r--r--tests/check/elements/souphttpsrc.c2
-rw-r--r--tests/check/elements/spectrum.c8
-rw-r--r--tests/check/elements/videofilter.c10
-rw-r--r--tests/check/elements/wavpackdec.c8
-rw-r--r--tests/check/elements/wavpackenc.c8
-rw-r--r--tests/check/elements/wavpackparse.c10
-rw-r--r--tests/check/elements/y4menc.c8
-rw-r--r--tests/check/generic/states.c2
-rw-r--r--tests/check/pipelines/simple-launch-lines.c3
-rw-r--r--tests/check/pipelines/wavpack.c2
-rw-r--r--tests/examples/equalizer/demo.c2
-rw-r--r--tests/examples/level/level-example.c2
-rw-r--r--tests/examples/spectrum/spectrum-example.c2
-rw-r--r--tests/icles/v4l2src-test.c6
156 files changed, 412 insertions, 249 deletions
diff --git a/configure.ac b/configure.ac
index c9f011d1a..d502da833 100644
--- a/configure.ac
+++ b/configure.ac
@@ -272,10 +272,10 @@ dnl set location of plugin directory
AG_GST_SET_PLUGINDIR
dnl define an ERROR_CFLAGS Makefile variable
-AG_GST_SET_ERROR_CFLAGS($GST_GIT)
+AG_GST_SET_ERROR_CFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes])
dnl define an ERROR_CXXFLAGS Makefile variable
-AG_GST_SET_ERROR_CXXFLAGS($GST_GIT)
+AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes])
dnl define correct level for debugging messages
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
diff --git a/ext/annodex/gstannodex.c b/ext/annodex/gstannodex.c
index 22fe798d9..05e10c8e4 100644
--- a/ext/annodex/gstannodex.c
+++ b/ext/annodex/gstannodex.c
@@ -27,6 +27,7 @@
#include <math.h>
#include <gst/tag/tag.h>
+#include "gstannodex.h"
#include "gstcmmlparser.h"
#include "gstcmmlenc.h"
#include "gstcmmldec.h"
diff --git a/ext/annodex/gstcmmldec.h b/ext/annodex/gstcmmldec.h
index 4999d41b9..27a6c5597 100644
--- a/ext/annodex/gstcmmldec.h
+++ b/ext/annodex/gstcmmldec.h
@@ -91,6 +91,8 @@ struct _GstCmmlDecClass
GstElementClass parent_class;
};
+GType gst_cmml_dec_get_type (void);
+
gboolean gst_cmml_dec_plugin_init (GstPlugin * plugin);
#endif /* __GST_CMML_DEC_H__ */
diff --git a/ext/annodex/gstcmmlenc.h b/ext/annodex/gstcmmlenc.h
index 1c0374217..4f28e4c53 100644
--- a/ext/annodex/gstcmmlenc.h
+++ b/ext/annodex/gstcmmlenc.h
@@ -72,6 +72,8 @@ struct _GstCmmlEncClass
GstElementClass parent_class;
};
+GType gst_cmml_enc_get_type (void);
+
gboolean gst_cmml_enc_plugin_init (GstPlugin * plugin);
#endif /* __GST_CMML_ENC_H__ */
diff --git a/ext/annodex/gstcmmlparser.c b/ext/annodex/gstcmmlparser.c
index 221f9f91c..0e2f7cd8e 100644
--- a/ext/annodex/gstcmmlparser.c
+++ b/ext/annodex/gstcmmlparser.c
@@ -121,7 +121,7 @@ gst_cmml_parser_parse_chunk (GstCmmlParser * parser,
/* convert an xmlNodePtr to a string
*/
-guchar *
+static guchar *
gst_cmml_parser_node_to_string (GstCmmlParser * parser, xmlNodePtr node)
{
xmlBufferPtr xml_buffer;
diff --git a/ext/annodex/gstcmmlutils.c b/ext/annodex/gstcmmlutils.c
index c8b802129..6ec682966 100644
--- a/ext/annodex/gstcmmlutils.c
+++ b/ext/annodex/gstcmmlutils.c
@@ -386,27 +386,3 @@ gst_cmml_track_list_get_track_last_clip (GHashTable * tracks,
return res ? GST_CMML_TAG_CLIP (res->data) : NULL;
}
-
-void
-gst_cmml_track_list_set_data (GHashTable * tracks,
- const gchar * track_name, gpointer data)
-{
- GstCmmlTrack *track;
-
- g_return_if_fail (track_name != NULL);
-
- track = g_hash_table_lookup (tracks, track_name);
- if (track)
- track->user_data = data;
-}
-
-gpointer
-gst_cmml_track_get_data (GHashTable * tracks, const gchar * track_name)
-{
- GstCmmlTrack *track;
-
- g_return_val_if_fail (track_name != NULL, NULL);
-
- track = g_hash_table_lookup (tracks, track_name);
- return track ? track->user_data : NULL;
-}
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c
index 307b76e94..725dc1fbb 100644
--- a/ext/dv/gstdvdec.c
+++ b/ext/dv/gstdvdec.c
@@ -132,7 +132,7 @@ static GstStaticPadTemplate src_temp = GST_STATIC_PAD_TEMPLATE ("src",
);
#define GST_TYPE_DVDEC_QUALITY (gst_dvdec_quality_get_type())
-GType
+static GType
gst_dvdec_quality_get_type (void)
{
static GType qtype = 0;
diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c
index c7d719aa6..b39dbd903 100644
--- a/ext/flac/gstflacenc.c
+++ b/ext/flac/gstflacenc.c
@@ -232,7 +232,7 @@ static const GstFlacEncParams flacenc_params[] = {
#define DEFAULT_SEEKPOINTS 0
#define GST_TYPE_FLAC_ENC_QUALITY (gst_flac_enc_quality_get_type ())
-GType
+static GType
gst_flac_enc_quality_get_type (void)
{
static GType qtype = 0;
diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c
index 65605fff2..64ea99adb 100644
--- a/ext/gdk_pixbuf/gstgdkpixbuf.c
+++ b/ext/gdk_pixbuf/gstgdkpixbuf.c
@@ -28,6 +28,7 @@
#include "gstgdkpixbuf.h"
#include "gstgdkpixbufsink.h"
+#include "pixbufscale.h"
GST_DEBUG_CATEGORY_STATIC (gst_gdk_pixbuf_debug);
#define GST_CAT_DEFAULT gst_gdk_pixbuf_debug
@@ -75,8 +76,6 @@ static GstStaticPadTemplate gst_gdk_pixbuf_src_template =
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; " GST_VIDEO_CAPS_RGBA)
);
-gboolean pixbufscale_init (GstPlugin * plugin);
-
static void gst_gdk_pixbuf_base_init (gpointer g_class);
static void gst_gdk_pixbuf_class_init (GstGdkPixbufClass * klass);
static void gst_gdk_pixbuf_init (GstGdkPixbuf * filter,
diff --git a/ext/gdk_pixbuf/pixbufscale.h b/ext/gdk_pixbuf/pixbufscale.h
index 686bf4dc0..3e4047772 100644
--- a/ext/gdk_pixbuf/pixbufscale.h
+++ b/ext/gdk_pixbuf/pixbufscale.h
@@ -75,7 +75,9 @@ struct _GstPixbufScaleClass {
GstBaseTransformClass parent_class;
};
-static GType gst_pixbufscale_get_type(void);
+GType gst_pixbufscale_get_type(void);
+
+gboolean pixbufscale_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/ext/jpeg/Makefile.am b/ext/jpeg/Makefile.am
index c8890c842..54176bae7 100644
--- a/ext/jpeg/Makefile.am
+++ b/ext/jpeg/Makefile.am
@@ -14,6 +14,7 @@ libgstjpeg_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstjpeg_la_LIBTOOLFLAGS = --tag=disable-static
noinst_HEADERS = \
+ gstjpeg.h \
gstjpegdec.h gstjpegenc.h \
gstsmokeenc.h gstsmokedec.h \
smokecodec.h smokeformat.h
diff --git a/ext/jpeg/gstjpeg.c b/ext/jpeg/gstjpeg.c
index 3cdcda192..b9d6e0461 100644
--- a/ext/jpeg/gstjpeg.c
+++ b/ext/jpeg/gstjpeg.c
@@ -24,6 +24,7 @@
#include <gst/gst.h>
+#include "gstjpeg.h"
#include "gstjpegdec.h"
#include "gstjpegenc.h"
#include "gstsmokeenc.h"
diff --git a/ext/jpeg/gstjpeg.h b/ext/jpeg/gstjpeg.h
new file mode 100644
index 000000000..e301793f1
--- /dev/null
+++ b/ext/jpeg/gstjpeg.h
@@ -0,0 +1,34 @@
+/* GStreamer
+ * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+
+#ifndef __GST_JPEG_H__
+#define __GST_JPEG_H__
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+
+GType gst_idct_method_get_type (void);
+
+
+G_END_DECLS
+
+#endif /* __GST_JPEG_H__ */
diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c
index f90911cc2..2258b1f21 100644
--- a/ext/jpeg/gstjpegdec.c
+++ b/ext/jpeg/gstjpegdec.c
@@ -38,6 +38,7 @@
#include <string.h>
#include "gstjpegdec.h"
+#include "gstjpeg.h"
#include <gst/video/video.h>
#include "gst/gst-i18n-plugin.h"
#include <jerror.h>
diff --git a/ext/jpeg/gstjpegenc.c b/ext/jpeg/gstjpegenc.c
index 01f1665a2..534e2a0cf 100644
--- a/ext/jpeg/gstjpegenc.c
+++ b/ext/jpeg/gstjpegenc.c
@@ -36,6 +36,7 @@
#include <string.h>
#include "gstjpegenc.h"
+#include "gstjpeg.h"
#include <gst/video/video.h>
/* experimental */
diff --git a/ext/wavpack/gstwavpackstreamreader.c b/ext/wavpack/gstwavpackstreamreader.c
index 6fda41c17..074a2e7d5 100644
--- a/ext/wavpack/gstwavpackstreamreader.c
+++ b/ext/wavpack/gstwavpackstreamreader.c
@@ -107,7 +107,7 @@ gst_wavpack_stream_reader_write_bytes (void *id, void *data, int32_t bcount)
}
WavpackStreamReader *
-gst_wavpack_stream_reader_new ()
+gst_wavpack_stream_reader_new (void)
{
WavpackStreamReader *stream_reader =
(WavpackStreamReader *) g_malloc0 (sizeof (WavpackStreamReader));
diff --git a/ext/wavpack/gstwavpackstreamreader.h b/ext/wavpack/gstwavpackstreamreader.h
index e9ffd70a4..713b4c155 100644
--- a/ext/wavpack/gstwavpackstreamreader.h
+++ b/ext/wavpack/gstwavpackstreamreader.h
@@ -31,6 +31,6 @@ typedef struct
uint32_t position;
} read_id;
-WavpackStreamReader *gst_wavpack_stream_reader_new ();
+WavpackStreamReader *gst_wavpack_stream_reader_new (void);
#endif
diff --git a/gst/debugutils/breakmydata.c b/gst/debugutils/breakmydata.c
index 63e30b6c8..03453797c 100644
--- a/gst/debugutils/breakmydata.c
+++ b/gst/debugutils/breakmydata.c
@@ -105,6 +105,7 @@ GstStaticPadTemplate bmd_sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
GST_DEBUG_CATEGORY_INIT (gst_break_my_data_debug, "breakmydata", 0, \
"debugging category for breakmydata element");
+GType gst_break_my_data_get_type (void);
GST_BOILERPLATE_FULL (GstBreakMyData, gst_break_my_data, GstBaseTransform,
GST_TYPE_BASE_TRANSFORM, DEBUG_INIT);
diff --git a/gst/debugutils/gstnavseek.c b/gst/debugutils/gstnavseek.c
index c47bf42fa..ee74226d6 100644
--- a/gst/debugutils/gstnavseek.c
+++ b/gst/debugutils/gstnavseek.c
@@ -65,6 +65,7 @@ static void gst_navseek_set_property (GObject * object, guint prop_id,
static void gst_navseek_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
+GType gst_navseek_get_type (void);
GST_BOILERPLATE (GstNavSeek, gst_navseek, GstBaseTransform,
GST_TYPE_BASE_TRANSFORM);
diff --git a/gst/debugutils/rndbuffersize.c b/gst/debugutils/rndbuffersize.c
index 7a8abd6b6..853642ba1 100644
--- a/gst/debugutils/rndbuffersize.c
+++ b/gst/debugutils/rndbuffersize.c
@@ -96,6 +96,7 @@ static GstStateChangeReturn gst_rnd_buffer_size_change_state (GstElement *
GST_DEBUG_CATEGORY_INIT (gst_rnd_buffer_size_debug, "rndbuffersize", 0, \
"rndbuffersize element");
+GType gst_rnd_buffer_size_get_type (void);
GST_BOILERPLATE_FULL (GstRndBufferSize, gst_rnd_buffer_size, GstElement,
GST_TYPE_ELEMENT, DEBUG_INIT);
diff --git a/gst/debugutils/testplugin.c b/gst/debugutils/testplugin.c
index dbb1e618a..f814e460e 100644
--- a/gst/debugutils/testplugin.c
+++ b/gst/debugutils/testplugin.c
@@ -90,6 +90,7 @@ static const GstElementDetails details = GST_ELEMENT_DETAILS ("Test plugin",
GST_DEBUG_CATEGORY_INIT (gst_test_debug, "testsink", 0, \
"debugging category for testsink element");
+GType gst_test_get_type (void);
GST_BOILERPLATE_FULL (GstTest, gst_test, GstBaseSink, GST_TYPE_BASE_SINK,
DEBUG_INIT);
diff --git a/gst/deinterlace/tvtime/greedyh.asm b/gst/deinterlace/tvtime/greedyh.asm
index 86e97c580..40aa00349 100644
--- a/gst/deinterlace/tvtime/greedyh.asm
+++ b/gst/deinterlace/tvtime/greedyh.asm
@@ -29,7 +29,7 @@
#include "x86-64_macros.inc"
-void
+static void
FUNCT_NAME (GstDeinterlaceMethodGreedyH *self, uint8_t * L1, uint8_t * L2, uint8_t * L3, uint8_t * L2P,
uint8_t * Dest, int size)
{
diff --git a/gst/deinterlace/tvtime/greedyh.c b/gst/deinterlace/tvtime/greedyh.c
index 860e8f3aa..e44332416 100644
--- a/gst/deinterlace/tvtime/greedyh.c
+++ b/gst/deinterlace/tvtime/greedyh.c
@@ -63,7 +63,7 @@ typedef struct
uint8_t * L1, uint8_t * L3, uint8_t * L2P, uint8_t * Dest, int size);
} GstDeinterlaceMethodGreedyHClass;
-void
+static void
greedyDScaler_C (GstDeinterlaceMethodGreedyH * self, uint8_t * L1, uint8_t * L2,
uint8_t * L3, uint8_t * L2P, uint8_t * Dest, int size)
{
diff --git a/gst/deinterlace/tvtime/mmx.h b/gst/deinterlace/tvtime/mmx.h
index 7e33cf5c6..b0e582b7c 100644
--- a/gst/deinterlace/tvtime/mmx.h
+++ b/gst/deinterlace/tvtime/mmx.h
@@ -98,7 +98,7 @@ typedef union {
/* Function to test if multimedia instructions are supported...
*/
-inline extern int
+static inline int
mm_support(void)
{
/* Returns 1 if MMX instructions are supported,
@@ -251,7 +251,7 @@ mm_support(void)
/* Function to test if mmx instructions are supported...
*/
-inline extern int
+static inline int
mmx_ok(void)
{
/* Returns 1 if MMX instructions are supported, 0 otherwise */
diff --git a/gst/deinterlace/tvtime/tomsmocomp/TomsMoCompAll.inc b/gst/deinterlace/tvtime/tomsmocomp/TomsMoCompAll.inc
index e8883dd3a..358a9bd88 100644
--- a/gst/deinterlace/tvtime/tomsmocomp/TomsMoCompAll.inc
+++ b/gst/deinterlace/tvtime/tomsmocomp/TomsMoCompAll.inc
@@ -61,7 +61,7 @@
#define SEFUNC(x) Search_Effort_C_##x(src_pitch, dst_pitch, rowsize, pWeaveSrc, pWeaveSrcP, pWeaveDest, IsOdd, pCopySrc, pCopySrcP, FldHeight)
#endif
-void FUNCT_NAME(GstDeinterlaceMethod *d_method, GstDeinterlace* object, GstBuffer *outbuf)
+static void FUNCT_NAME(GstDeinterlaceMethod *d_method, GstDeinterlace* object, GstBuffer *outbuf)
{
GstDeinterlaceMethodTomsMoComp *self = GST_DEINTERLACE_METHOD_TOMSMOCOMP (d_method);
long SearchEffort = self->search_effort;
diff --git a/gst/goom/goom_fx.h b/gst/goom/goom_fx.h
index 9da110939..9f6c6b171 100644
--- a/gst/goom/goom_fx.h
+++ b/gst/goom/goom_fx.h
@@ -22,7 +22,7 @@
#include "goom_visual_fx.h"
#include "goom_plugin_info.h"
-VisualFX convolve_create ();
+VisualFX convolve_create (void);
VisualFX flying_star_create (void);
void zoom_filter_c(int sizeX, int sizeY, Pixel *src, Pixel *dest, int *brutS, int *brutD, int buffratio, int precalCoef[16][16]);
diff --git a/gst/goom2k1/filters.c b/gst/goom2k1/filters.c
index b898e89cd..1b1ea13ef 100644
--- a/gst/goom2k1/filters.c
+++ b/gst/goom2k1/filters.c
@@ -64,7 +64,7 @@ static int firstTime = 1;
static int sintable[0xffff];
ZoomFilterData *
-zoomFilterNew ()
+zoomFilterNew (void)
{
ZoomFilterData *zf = malloc (sizeof (ZoomFilterData));
@@ -106,7 +106,7 @@ ShiftRight (int x, const unsigned char s)
px et py indique la nouvelle position (en sqrtperte ieme de pixel)
(valeur * 16)
*/
-void
+static void
calculatePXandPY (GoomData * gd, int x, int y, int *px, int *py)
{
ZoomFilterData *zf = gd->zfd;
diff --git a/gst/goom2k1/filters.h b/gst/goom2k1/filters.h
index 65eb3e252..8c6f62e66 100644
--- a/gst/goom2k1/filters.h
+++ b/gst/goom2k1/filters.h
@@ -55,7 +55,7 @@ Uint middleX,
Uint middleY);
*/
-ZoomFilterData *zoomFilterNew ();
+ZoomFilterData *zoomFilterNew (void);
void zoomFilterDestroy (ZoomFilterData *zf);
void zoomFilterFastRGB (GoomData *goomdata, ZoomFilterData *zf,
int zfd_update);
diff --git a/gst/law/mulaw-conversion.c b/gst/law/mulaw-conversion.c
index 23e53a1d4..8afae806f 100644
--- a/gst/law/mulaw-conversion.c
+++ b/gst/law/mulaw-conversion.c
@@ -25,6 +25,8 @@
#include <glib.h>
+#include "mulaw-conversion.h"
+
#undef ZEROTRAP /* turn on the trap as per the MIL-STD */
#define BIAS 0x84 /* define the add-in bias for 16 bit samples */
#define CLIP 32635
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 85ce5fe5c..2c30bb981 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -175,6 +175,7 @@ static GstCaps
/* stream methods */
static void gst_matroska_demux_reset (GstElement * element);
+GType gst_matroska_demux_get_type (void);
GST_BOILERPLATE (GstMatroskaDemux, gst_matroska_demux, GstEbmlRead,
GST_TYPE_EBML_READ);
diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c
index 87d246a54..360794b8f 100644
--- a/gst/matroska/matroska-mux.c
+++ b/gst/matroska/matroska-mux.c
@@ -199,6 +199,7 @@ G_LOCK_DEFINE_STATIC (used_uids);
static void gst_matroska_mux_add_interfaces (GType type);
+GType gst_matroska_mux_get_type (void);
GST_BOILERPLATE_FULL (GstMatroskaMux, gst_matroska_mux, GstElement,
GST_TYPE_ELEMENT, gst_matroska_mux_add_interfaces);
@@ -2343,7 +2344,7 @@ gst_matroska_mux_best_pad (GstMatroskaMux * mux, gboolean * popped)
*
* Returns: New buffer.
*/
-GstBuffer *
+static GstBuffer *
gst_matroska_mux_create_buffer_header (GstMatroskaTrackContext * track,
gint16 relative_timestamp, int flags)
{
diff --git a/gst/multipart/multipart.c b/gst/multipart/multipart.c
index c1598232e..12bab4c59 100644
--- a/gst/multipart/multipart.c
+++ b/gst/multipart/multipart.c
@@ -23,8 +23,8 @@
#include <gst/gst.h>
-extern gboolean gst_multipart_demux_plugin_init (GstPlugin * plugin);
-extern gboolean gst_multipart_mux_plugin_init (GstPlugin * plugin);
+#include "multipartdemux.h"
+#include "multipartmux.h"
static gboolean
plugin_init (GstPlugin * plugin)
diff --git a/gst/multipart/multipartdemux.c b/gst/multipart/multipartdemux.c
index 1401c6a66..707c262a1 100644
--- a/gst/multipart/multipartdemux.c
+++ b/gst/multipart/multipartdemux.c
@@ -200,7 +200,7 @@ gst_multipart_demux_init (GstMultipartDemux * multipart,
multipart->autoscan = DEFAULT_AUTOSCAN;
}
-void
+static void
gst_multipart_pad_free (GstMultipartPad * mppad)
{
g_free (mppad->mime);
diff --git a/gst/multipart/multipartdemux.h b/gst/multipart/multipartdemux.h
index 930f49ff5..36f935d4c 100644
--- a/gst/multipart/multipartdemux.h
+++ b/gst/multipart/multipartdemux.h
@@ -93,6 +93,10 @@ struct _GstMultipartDemuxClass
GHashTable *gstnames;
};
+GType gst_multipart_demux_get_type (void);
+
+gboolean gst_multipart_demux_plugin_init (GstPlugin * plugin);
+
G_END_DECLS
#endif /* __GST_MULTIPART_DEMUX__ */
diff --git a/gst/multipart/multipartmux.c b/gst/multipart/multipartmux.c
index 0f71b4688..a71872eff 100644
--- a/gst/multipart/multipartmux.c
+++ b/gst/multipart/multipartmux.c
@@ -231,11 +231,11 @@ gst_multipart_mux_request_new_pad (GstElement * element,
/* construct our own wrapper data structure for the pad to
* keep track of its status */
{
- GstMultipartPad *multipartpad;
+ GstMultipartPadData *multipartpad;
- multipartpad = (GstMultipartPad *)
+ multipartpad = (GstMultipartPadData *)
gst_collect_pads_add_pad (multipart_mux->collect, newpad,
- sizeof (GstMultipartPad));
+ sizeof (GstMultipartPadData));
/* save a pointer to our data in the pad */
gst_pad_set_element_private (newpad, multipartpad);
@@ -338,7 +338,7 @@ gst_multipart_mux_get_mime (GstMultipartMux * mux, GstStructure * s)
*/
static gint
gst_multipart_mux_compare_pads (GstMultipartMux * multipart_mux,
- GstMultipartPad * old, GstMultipartPad * new)
+ GstMultipartPadData * old, GstMultipartPadData * new)
{
guint64 oldtime, newtime;
@@ -372,11 +372,11 @@ gst_multipart_mux_compare_pads (GstMultipartMux * multipart_mux,
/* make sure a buffer is queued on all pads, returns a pointer to an multipartpad
* that holds the best buffer or NULL when no pad was usable */
-static GstMultipartPad *
+static GstMultipartPadData *
gst_multipart_mux_queue_pads (GstMultipartMux * mux)
{
GSList *walk = NULL;
- GstMultipartPad *bestpad = NULL;
+ GstMultipartPadData *bestpad = NULL;
g_return_val_if_fail (GST_IS_MULTIPART_MUX (mux), NULL);
@@ -384,7 +384,7 @@ gst_multipart_mux_queue_pads (GstMultipartMux * mux)
walk = mux->collect->data;
while (walk) {
GstCollectData *data = (GstCollectData *) walk->data;
- GstMultipartPad *pad = (GstMultipartPad *) data;
+ GstMultipartPadData *pad = (GstMultipartPadData *) data;
walk = g_slist_next (walk);
@@ -428,7 +428,7 @@ gst_multipart_mux_queue_pads (GstMultipartMux * mux)
static GstFlowReturn
gst_multipart_mux_collected (GstCollectPads * pads, GstMultipartMux * mux)
{
- GstMultipartPad *best;
+ GstMultipartPadData *best;
GstFlowReturn ret = GST_FLOW_OK;
gchar *header = NULL;
size_t headerlen;
diff --git a/gst/multipart/multipartmux.h b/gst/multipart/multipartmux.h
index 2e52a2fc7..a52db36ee 100644
--- a/gst/multipart/multipartmux.h
+++ b/gst/multipart/multipartmux.h
@@ -48,7 +48,7 @@ typedef struct
GstClockTime timestamp; /* its timestamp, converted to running_time so that we can
correctly sort over multiple segments. */
}
-GstMultipartPad;
+GstMultipartPadData;
/**
* GstMultipartMux:
@@ -84,6 +84,10 @@ struct _GstMultipartMuxClass
GHashTable *mimetypes;
};
+GType gst_multipart_mux_get_type (void);
+
+gboolean gst_multipart_mux_plugin_init (GstPlugin * plugin);
+
G_END_DECLS
#endif /* __GST_MULTIPART_MUX__ */
diff --git a/gst/qtdemux/gstrtpxqtdepay.c b/gst/qtdemux/gstrtpxqtdepay.c
index 766cf96db..a300dbbf6 100644
--- a/gst/qtdemux/gstrtpxqtdepay.c
+++ b/gst/qtdemux/gstrtpxqtdepay.c
@@ -695,10 +695,3 @@ gst_rtp_xqt_depay_change_state (GstElement * element, GstStateChange transition)
}
return ret;
}
-
-gboolean
-gst_rtp_xqt_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpxqtdepay",
- GST_RANK_MARGINAL, GST_TYPE_RTP_XQT_DEPAY);
-}
diff --git a/gst/rtp/fnv1hash.c b/gst/rtp/fnv1hash.c
index 84fac9ad1..a7926e46d 100644
--- a/gst/rtp/fnv1hash.c
+++ b/gst/rtp/fnv1hash.c
@@ -23,6 +23,8 @@
#include <glib.h>
+#include "fnv1hash.h"
+
/* This file implements FNV-1 hashing used in the Ogg payload encoders
* to generate the 24-bit ident value based on the header pages.
* See http://isthe.com/chongo/tech/comp/fnv/
diff --git a/gst/rtp/fnv1hash.h b/gst/rtp/fnv1hash.h
index ea3c6b6b3..398323d69 100644
--- a/gst/rtp/fnv1hash.h
+++ b/gst/rtp/fnv1hash.h
@@ -26,7 +26,7 @@
G_BEGIN_DECLS
-guint32 fnv1_hash_32_new ();
+guint32 fnv1_hash_32_new (void);
guint32 fnv1_hash_32_update (guint32 hash, const guchar *data, guint length);
guint32 fnv1_hash_32_to_24 (guint32 hash);
diff --git a/gst/rtp/gstasteriskh263.h b/gst/rtp/gstasteriskh263.h
index 0edc99611..8451e7e2f 100644
--- a/gst/rtp/gstasteriskh263.h
+++ b/gst/rtp/gstasteriskh263.h
@@ -56,6 +56,8 @@ struct _GstAsteriskh263Class
GstElementClass parent_class;
};
+GType gst_asteriskh263_get_type (void);
+
gboolean gst_asteriskh263_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpL16depay.h b/gst/rtp/gstrtpL16depay.h
index 9d523d853..a260d45d3 100644
--- a/gst/rtp/gstrtpL16depay.h
+++ b/gst/rtp/gstrtpL16depay.h
@@ -55,6 +55,8 @@ struct _GstRtpL16DepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_L16_depay_get_type (void);
+
gboolean gst_rtp_L16_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpL16pay.h b/gst/rtp/gstrtpL16pay.h
index 8c30cee58..d2755db31 100644
--- a/gst/rtp/gstrtpL16pay.h
+++ b/gst/rtp/gstrtpL16pay.h
@@ -52,6 +52,8 @@ struct _GstRtpL16PayClass
GstBaseRTPAudioPayloadClass parent_class;
};
+GType gst_rtp_L16_pay_get_type (void);
+
gboolean gst_rtp_L16_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpac3depay.h b/gst/rtp/gstrtpac3depay.h
index 128ccbdd0..f0929e502 100644
--- a/gst/rtp/gstrtpac3depay.h
+++ b/gst/rtp/gstrtpac3depay.h
@@ -49,6 +49,8 @@ struct _GstRtpAC3DepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_ac3_depay_get_type (void);
+
gboolean gst_rtp_ac3_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpamrdepay.h b/gst/rtp/gstrtpamrdepay.h
index b6e7bf04e..92f001a12 100644
--- a/gst/rtp/gstrtpamrdepay.h
+++ b/gst/rtp/gstrtpamrdepay.h
@@ -68,6 +68,8 @@ struct _GstRtpAMRDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_amr_depay_get_type (void);
+
gboolean gst_rtp_amr_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpamrpay.h b/gst/rtp/gstrtpamrpay.h
index d26d78665..ce86d0d9c 100644
--- a/gst/rtp/gstrtpamrpay.h
+++ b/gst/rtp/gstrtpamrpay.h
@@ -58,6 +58,8 @@ struct _GstRtpAMRPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_amr_pay_get_type (void);
+
gboolean gst_rtp_amr_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpbvdepay.h b/gst/rtp/gstrtpbvdepay.h
index c2d2130e5..9cb950590 100644
--- a/gst/rtp/gstrtpbvdepay.h
+++ b/gst/rtp/gstrtpbvdepay.h
@@ -51,6 +51,8 @@ struct _GstRTPBVDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_bv_depay_get_type (void);
+
gboolean gst_rtp_bv_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpbvpay.c b/gst/rtp/gstrtpbvpay.c
index 1d41f64a2..3242cbef0 100644
--- a/gst/rtp/gstrtpbvpay.c
+++ b/gst/rtp/gstrtpbvpay.c
@@ -28,7 +28,7 @@
#include "gstrtpbvpay.h"
/* elementfactory information */
-static GstElementDetails gst_rtpbvpay_details = {
+static GstElementDetails gst_rtp_bv_pay_details = {
"RTP BV Payloader",
"Codec/Payloader/Network",
"Packetize BroadcomVoice audio streams into RTP packets (RFC 4298)",
@@ -38,14 +38,14 @@ static GstElementDetails gst_rtpbvpay_details = {
GST_DEBUG_CATEGORY_STATIC (rtpbvpay_debug);
#define GST_CAT_DEFAULT (rtpbvpay_debug)
-static GstStaticPadTemplate gst_rtpbvpay_sink_template =
+static GstStaticPadTemplate gst_rtp_bv_pay_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-bv, " "mode = (int) {16, 32}")
);
-static GstStaticPadTemplate gst_rtpbvpay_src_template =
+static GstStaticPadTemplate gst_rtp_bv_pay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
@@ -61,42 +61,42 @@ static GstStaticPadTemplate gst_rtpbvpay_src_template =
);
-static GstCaps *gst_rtpbvpay_sink_getcaps (GstBaseRTPPayload * payload,
+static GstCaps *gst_rtp_bv_pay_sink_getcaps (GstBaseRTPPayload * payload,
GstPad * pad);
-static gboolean gst_rtpbvpay_sink_setcaps (GstBaseRTPPayload * payload,
+static gboolean gst_rtp_bv_pay_sink_setcaps (GstBaseRTPPayload * payload,
GstCaps * caps);
-GST_BOILERPLATE (GstRTPBVPay, gst_rtpbvpay, GstBaseRTPAudioPayload,
+GST_BOILERPLATE (GstRTPBVPay, gst_rtp_bv_pay, GstBaseRTPAudioPayload,
GST_TYPE_BASE_RTP_AUDIO_PAYLOAD);
static void
-gst_rtpbvpay_base_init (gpointer klass)
+gst_rtp_bv_pay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtpbvpay_sink_template));
+ gst_static_pad_template_get (&gst_rtp_bv_pay_sink_template));
gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtpbvpay_src_template));
- gst_element_class_set_details (element_class, &gst_rtpbvpay_details);
+ gst_static_pad_template_get (&gst_rtp_bv_pay_src_template));
+ gst_element_class_set_details (element_class, &gst_rtp_bv_pay_details);
}
static void
-gst_rtpbvpay_class_init (GstRTPBVPayClass * klass)
+gst_rtp_bv_pay_class_init (GstRTPBVPayClass * klass)
{
GstBaseRTPPayloadClass *gstbasertppayload_class;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- gstbasertppayload_class->set_caps = gst_rtpbvpay_sink_setcaps;
- gstbasertppayload_class->get_caps = gst_rtpbvpay_sink_getcaps;
+ gstbasertppayload_class->set_caps = gst_rtp_bv_pay_sink_setcaps;
+ gstbasertppayload_class->get_caps = gst_rtp_bv_pay_sink_getcaps;
GST_DEBUG_CATEGORY_INIT (rtpbvpay_debug, "rtpbvpay", 0,
"BroadcomVoice audio RTP payloader");
}
static void
-gst_rtpbvpay_init (GstRTPBVPay * rtpbvpay, GstRTPBVPayClass * klass)
+gst_rtp_bv_pay_init (GstRTPBVPay * rtpbvpay, GstRTPBVPayClass * klass)
{
GstBaseRTPPayload *basertppayload;
GstBaseRTPAudioPayload *basertpaudiopayload;
@@ -111,7 +111,7 @@ gst_rtpbvpay_init (GstRTPBVPay * rtpbvpay, GstRTPBVPayClass * klass)
}
static gboolean
-gst_rtpbvpay_sink_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
+gst_rtp_bv_pay_sink_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
{
GstRTPBVPay *rtpbvpay;
GstBaseRTPAudioPayload *basertpaudiopayload;
@@ -183,7 +183,7 @@ mode_changed:
/* we return the padtemplate caps with the mode field fixated to a value if we
* can */
static GstCaps *
-gst_rtpbvpay_sink_getcaps (GstBaseRTPPayload * rtppayload, GstPad * pad)
+gst_rtp_bv_pay_sink_getcaps (GstBaseRTPPayload * rtppayload, GstPad * pad)
{
GstCaps *otherpadcaps;
GstCaps *caps;
diff --git a/gst/rtp/gstrtpbvpay.h b/gst/rtp/gstrtpbvpay.h
index ed7f2987a..58a6108de 100644
--- a/gst/rtp/gstrtpbvpay.h
+++ b/gst/rtp/gstrtpbvpay.h
@@ -26,7 +26,7 @@
G_BEGIN_DECLS
#define GST_TYPE_RTP_BV_PAY \
- (gst_rtpbvpay_get_type())
+ (gst_rtp_bv_pay_get_type())
#define GST_RTP_BV_PAY(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_BV_PAY,GstRTPBVPay))
#define GST_RTP_BV_PAY_CLASS(klass) \
@@ -51,6 +51,8 @@ struct _GstRTPBVPayClass
GstBaseRTPAudioPayloadClass parent_class;
};
+GType gst_rtp_bv_pay_get_type (void);
+
gboolean gst_rtp_bv_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpceltdepay.h b/gst/rtp/gstrtpceltdepay.h
index 89c5fff6a..cfdc220d5 100644
--- a/gst/rtp/gstrtpceltdepay.h
+++ b/gst/rtp/gstrtpceltdepay.h
@@ -45,6 +45,8 @@ struct _GstRtpCELTDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_celt_depay_get_type (void);
+
gboolean gst_rtp_celt_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpceltpay.h b/gst/rtp/gstrtpceltpay.h
index 223ad66d7..9213bf800 100644
--- a/gst/rtp/gstrtpceltpay.h
+++ b/gst/rtp/gstrtpceltpay.h
@@ -53,6 +53,8 @@ struct _GstRtpCELTPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_celt_pay_get_type (void);
+
gboolean gst_rtp_celt_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpdvdepay.h b/gst/rtp/gstrtpdvdepay.h
index 08544f581..ea7618ae3 100644
--- a/gst/rtp/gstrtpdvdepay.h
+++ b/gst/rtp/gstrtpdvdepay.h
@@ -58,6 +58,7 @@ struct _GstRTPDVDepayClass
};
GType gst_rtp_dv_depay_get_type (void);
+
gboolean gst_rtp_dv_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpdvpay.h b/gst/rtp/gstrtpdvpay.h
index 5aaf971d0..e691b80a2 100644
--- a/gst/rtp/gstrtpdvpay.h
+++ b/gst/rtp/gstrtpdvpay.h
@@ -60,6 +60,8 @@ struct _GstRTPDVPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_dv_pay_get_type (void);
+
gboolean gst_rtp_dv_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpg723depay.h b/gst/rtp/gstrtpg723depay.h
index b07ad670d..fcab761fc 100644
--- a/gst/rtp/gstrtpg723depay.h
+++ b/gst/rtp/gstrtpg723depay.h
@@ -50,6 +50,8 @@ struct _GstRtpG723DepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_g723_depay_get_type (void);
+
gboolean gst_rtp_g723_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpg723pay.h b/gst/rtp/gstrtpg723pay.h
index f8d3ea1b1..db1570f3d 100644
--- a/gst/rtp/gstrtpg723pay.h
+++ b/gst/rtp/gstrtpg723pay.h
@@ -55,10 +55,10 @@ struct _GstRTPG723PayClass
GstBaseRTPPayloadClass parent_class;
};
-gboolean gst_rtp_g723_pay_plugin_init (GstPlugin * plugin);
-
GType gst_rtp_g723_pay_get_type (void);
+gboolean gst_rtp_g723_pay_plugin_init (GstPlugin * plugin);
+
G_END_DECLS
#endif /* __GST_RTP_G723_PAY_H__ */
diff --git a/gst/rtp/gstrtpg726depay.h b/gst/rtp/gstrtpg726depay.h
index 992644e3b..064a4fa55 100644
--- a/gst/rtp/gstrtpg726depay.h
+++ b/gst/rtp/gstrtpg726depay.h
@@ -49,6 +49,8 @@ struct _GstRtpG726DepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_g726_depay_get_type (void);
+
gboolean gst_rtp_g726_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpg726pay.h b/gst/rtp/gstrtpg726pay.h
index 1d9856b99..ce3dbdc1d 100644
--- a/gst/rtp/gstrtpg726pay.h
+++ b/gst/rtp/gstrtpg726pay.h
@@ -47,6 +47,8 @@ struct _GstRtpG726PayClass
GstBaseRTPAudioPayloadClass parent_class;
};
+GType gst_rtp_g726_pay_get_type (void);
+
gboolean gst_rtp_g726_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpg729depay.h b/gst/rtp/gstrtpg729depay.h
index c26d320a5..f02db5c50 100644
--- a/gst/rtp/gstrtpg729depay.h
+++ b/gst/rtp/gstrtpg729depay.h
@@ -52,6 +52,8 @@ struct _GstRtpG729DepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_g729_depay_get_type (void);
+
gboolean gst_rtp_g729_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpg729pay.h b/gst/rtp/gstrtpg729pay.h
index ce0e1d6be..e77b5ff27 100644
--- a/gst/rtp/gstrtpg729pay.h
+++ b/gst/rtp/gstrtpg729pay.h
@@ -50,6 +50,8 @@ struct _GstRTPG729PayClass
GstBaseRTPAudioPayloadClass parent_class;
};
+GType gst_rtp_g729_pay_get_type (void);
+
gboolean gst_rtp_g729_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpgsmdepay.h b/gst/rtp/gstrtpgsmdepay.h
index 53b15242a..221f4b3e8 100644
--- a/gst/rtp/gstrtpgsmdepay.h
+++ b/gst/rtp/gstrtpgsmdepay.h
@@ -49,6 +49,8 @@ struct _GstRTPGSMDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_gsm_depay_get_type (void);
+
gboolean gst_rtp_gsm_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpgsmpay.h b/gst/rtp/gstrtpgsmpay.h
index cf50000f9..4172402e1 100644
--- a/gst/rtp/gstrtpgsmpay.h
+++ b/gst/rtp/gstrtpgsmpay.h
@@ -50,6 +50,8 @@ struct _GstRTPGSMPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_gsm_pay_get_type (void);
+
gboolean gst_rtp_gsm_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtph263depay.h b/gst/rtp/gstrtph263depay.h
index 169196b51..e16147754 100644
--- a/gst/rtp/gstrtph263depay.h
+++ b/gst/rtp/gstrtph263depay.h
@@ -55,6 +55,8 @@ struct _GstRtpH263DepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_h263_depay_get_type (void);
+
gboolean gst_rtp_h263_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtph263pay.h b/gst/rtp/gstrtph263pay.h
index 37241f96e..33071eb4b 100644
--- a/gst/rtp/gstrtph263pay.h
+++ b/gst/rtp/gstrtph263pay.h
@@ -405,6 +405,8 @@ struct _GstRtpH263PayPackage
#define GST_RTP_H263_PAY_END(start, len) (((guint8 *)start) + ((guint)len))
#define GST_RTP_H263_PAY_GOBN(gob) (((((guint8 *) gob)[2] >> 2) & 0x1f)
+GType gst_rtp_h263_pay_get_type (void);
+
gboolean gst_rtp_h263_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtph263pdepay.h b/gst/rtp/gstrtph263pdepay.h
index 8493e6354..0e7c351aa 100644
--- a/gst/rtp/gstrtph263pdepay.h
+++ b/gst/rtp/gstrtph263pdepay.h
@@ -53,6 +53,8 @@ struct _GstRtpH263PDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_h263p_depay_get_type (void);
+
gboolean gst_rtp_h263p_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtph263ppay.h b/gst/rtp/gstrtph263ppay.h
index 02f377f0f..b01fb843e 100644
--- a/gst/rtp/gstrtph263ppay.h
+++ b/gst/rtp/gstrtph263ppay.h
@@ -61,6 +61,8 @@ struct _GstRtpH263PPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_h263p_pay_get_type (void);
+
gboolean gst_rtp_h263p_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtph264depay.h b/gst/rtp/gstrtph264depay.h
index c9d9f0960..e1fda3ffd 100644
--- a/gst/rtp/gstrtph264depay.h
+++ b/gst/rtp/gstrtph264depay.h
@@ -63,6 +63,8 @@ struct _GstRtpH264DepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_h264_depay_get_type (void);
+
gboolean gst_rtp_h264_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtph264pay.h b/gst/rtp/gstrtph264pay.h
index 823756fe4..96eea2c28 100644
--- a/gst/rtp/gstrtph264pay.h
+++ b/gst/rtp/gstrtph264pay.h
@@ -73,6 +73,8 @@ struct _GstRtpH264PayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_h264_pay_get_type (void);
+
gboolean gst_rtp_h264_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpilbcdepay.h b/gst/rtp/gstrtpilbcdepay.h
index a9b30bd9d..ce8c38d5b 100644
--- a/gst/rtp/gstrtpilbcdepay.h
+++ b/gst/rtp/gstrtpilbcdepay.h
@@ -56,6 +56,8 @@ struct _GstRTPiLBCDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_ilbc_depay_get_type (void);
+
gboolean gst_rtp_ilbc_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpilbcpay.c b/gst/rtp/gstrtpilbcpay.c
index 5c0f56b9f..004a82cf9 100644
--- a/gst/rtp/gstrtpilbcpay.c
+++ b/gst/rtp/gstrtpilbcpay.c
@@ -26,7 +26,7 @@
#include "gstrtpilbcpay.h"
/* elementfactory information */
-static GstElementDetails gst_rtpilbcpay_details = {
+static GstElementDetails gst_rtp_ilbc_pay_details = {
"RTP iLBC Payloader",
"Codec/Payloader/Network",
"Packetize iLBC audio streams into RTP packets",
@@ -36,14 +36,14 @@ static GstElementDetails gst_rtpilbcpay_details = {
GST_DEBUG_CATEGORY_STATIC (rtpilbcpay_debug);
#define GST_CAT_DEFAULT (rtpilbcpay_debug)
-static GstStaticPadTemplate gst_rtpilbcpay_sink_template =
+static GstStaticPadTemplate gst_rtp_ilbc_pay_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-iLBC, " "mode = (int) {20, 30}")
);
-static GstStaticPadTemplate gst_rtpilbcpay_src_template =
+static GstStaticPadTemplate gst_rtp_ilbc_pay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
@@ -56,42 +56,42 @@ GST_STATIC_PAD_TEMPLATE ("src",
);
-static GstCaps *gst_rtpilbcpay_sink_getcaps (GstBaseRTPPayload * payload,
+static GstCaps *gst_rtp_ilbc_pay_sink_getcaps (GstBaseRTPPayload * payload,
GstPad * pad);
-static gboolean gst_rtpilbcpay_sink_setcaps (GstBaseRTPPayload * payload,
+static gboolean gst_rtp_ilbc_pay_sink_setcaps (GstBaseRTPPayload * payload,
GstCaps * caps);
-GST_BOILERPLATE (GstRTPILBCPay, gst_rtpilbcpay, GstBaseRTPAudioPayload,
+GST_BOILERPLATE (GstRTPILBCPay, gst_rtp_ilbc_pay, GstBaseRTPAudioPayload,
GST_TYPE_BASE_RTP_AUDIO_PAYLOAD);
static void
-gst_rtpilbcpay_base_init (gpointer klass)
+gst_rtp_ilbc_pay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtpilbcpay_sink_template));
+ gst_static_pad_template_get (&gst_rtp_ilbc_pay_sink_template));
gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtpilbcpay_src_template));
- gst_element_class_set_details (element_class, &gst_rtpilbcpay_details);
+ gst_static_pad_template_get (&gst_rtp_ilbc_pay_src_template));
+ gst_element_class_set_details (element_class, &gst_rtp_ilbc_pay_details);
}
static void
-gst_rtpilbcpay_class_init (GstRTPILBCPayClass * klass)
+gst_rtp_ilbc_pay_class_init (GstRTPILBCPayClass * klass)
{
GstBaseRTPPayloadClass *gstbasertppayload_class;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- gstbasertppayload_class->set_caps = gst_rtpilbcpay_sink_setcaps;
- gstbasertppayload_class->get_caps = gst_rtpilbcpay_sink_getcaps;
+ gstbasertppayload_class->set_caps = gst_rtp_ilbc_pay_sink_setcaps;
+ gstbasertppayload_class->get_caps = gst_rtp_ilbc_pay_sink_getcaps;
GST_DEBUG_CATEGORY_INIT (rtpilbcpay_debug, "rtpilbcpay", 0,
"iLBC audio RTP payloader");
}
static void
-gst_rtpilbcpay_init (GstRTPILBCPay * rtpilbcpay, GstRTPILBCPayClass * klass)
+gst_rtp_ilbc_pay_init (GstRTPILBCPay * rtpilbcpay, GstRTPILBCPayClass * klass)
{
GstBaseRTPPayload *basertppayload;
GstBaseRTPAudioPayload *basertpaudiopayload;
@@ -110,7 +110,8 @@ gst_rtpilbcpay_init (GstRTPILBCPay * rtpilbcpay, GstRTPILBCPayClass * klass)
}
static gboolean
-gst_rtpilbcpay_sink_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
+gst_rtp_ilbc_pay_sink_setcaps (GstBaseRTPPayload * basertppayload,
+ GstCaps * caps)
{
GstRTPILBCPay *rtpilbcpay;
GstBaseRTPAudioPayload *basertpaudiopayload;
@@ -181,7 +182,7 @@ mode_changed:
/* we return the padtemplate caps with the mode field fixated to a value if we
* can */
static GstCaps *
-gst_rtpilbcpay_sink_getcaps (GstBaseRTPPayload * rtppayload, GstPad * pad)
+gst_rtp_ilbc_pay_sink_getcaps (GstBaseRTPPayload * rtppayload, GstPad * pad)
{
GstCaps *otherpadcaps;
GstCaps *caps;
diff --git a/gst/rtp/gstrtpilbcpay.h b/gst/rtp/gstrtpilbcpay.h
index 51353f54e..80713628f 100644
--- a/gst/rtp/gstrtpilbcpay.h
+++ b/gst/rtp/gstrtpilbcpay.h
@@ -26,7 +26,7 @@
G_BEGIN_DECLS
#define GST_TYPE_RTP_ILBC_PAY \
- (gst_rtpilbcpay_get_type())
+ (gst_rtp_ilbc_pay_get_type())
#define GST_RTP_ILBC_PAY(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_ILBC_PAY,GstRTPILBCPay))
#define GST_RTP_ILBC_PAY_CLASS(klass) \
@@ -51,6 +51,8 @@ struct _GstRTPILBCPayClass
GstBaseRTPAudioPayloadClass parent_class;
};
+GType gst_rtp_ilbc_pay_get_type (void);
+
gboolean gst_rtp_ilbc_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpj2kdepay.h b/gst/rtp/gstrtpj2kdepay.h
index c1c8a1796..41120af42 100644
--- a/gst/rtp/gstrtpj2kdepay.h
+++ b/gst/rtp/gstrtpj2kdepay.h
@@ -55,6 +55,8 @@ struct _GstRtpJ2KDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_j2k_depay_get_type (void);
+
gboolean gst_rtp_j2k_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpj2kpay.h b/gst/rtp/gstrtpj2kpay.h
index 492aa1b05..601e7cb7d 100644
--- a/gst/rtp/gstrtpj2kpay.h
+++ b/gst/rtp/gstrtpj2kpay.h
@@ -52,6 +52,8 @@ struct _GstRtpJ2KPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_j2k_pay_get_type (void);
+
gboolean gst_rtp_j2k_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpjpegdepay.h b/gst/rtp/gstrtpjpegdepay.h
index 28581f173..591a8cb9c 100644
--- a/gst/rtp/gstrtpjpegdepay.h
+++ b/gst/rtp/gstrtpjpegdepay.h
@@ -60,6 +60,8 @@ struct _GstRtpJPEGDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_jpeg_depay_get_type (void);
+
gboolean gst_rtp_jpeg_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpjpegpay.h b/gst/rtp/gstrtpjpegpay.h
index 19fe378a8..5d003c419 100644
--- a/gst/rtp/gstrtpjpegpay.h
+++ b/gst/rtp/gstrtpjpegpay.h
@@ -57,6 +57,8 @@ struct _GstRtpJPEGPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_jpeg_pay_get_type (void);
+
gboolean gst_rtp_jpeg_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmp1sdepay.h b/gst/rtp/gstrtpmp1sdepay.h
index d0296dee3..42915a71b 100644
--- a/gst/rtp/gstrtpmp1sdepay.h
+++ b/gst/rtp/gstrtpmp1sdepay.h
@@ -49,6 +49,8 @@ struct _GstRtpMP1SDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_mp1s_depay_get_type (void);
+
gboolean gst_rtp_mp1s_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmp2tdepay.h b/gst/rtp/gstrtpmp2tdepay.h
index e8c758696..010b5ca9c 100644
--- a/gst/rtp/gstrtpmp2tdepay.h
+++ b/gst/rtp/gstrtpmp2tdepay.h
@@ -51,6 +51,8 @@ struct _GstRtpMP2TDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_mp2t_depay_get_type (void);
+
gboolean gst_rtp_mp2t_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmp2tpay.h b/gst/rtp/gstrtpmp2tpay.h
index 837897275..e7a679b48 100644
--- a/gst/rtp/gstrtpmp2tpay.h
+++ b/gst/rtp/gstrtpmp2tpay.h
@@ -55,6 +55,8 @@ struct _GstRTPMP2TPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_mp2t_pay_get_type (void);
+
gboolean gst_rtp_mp2t_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmp4adepay.h b/gst/rtp/gstrtpmp4adepay.h
index 36ed71456..16c20b7f7 100644
--- a/gst/rtp/gstrtpmp4adepay.h
+++ b/gst/rtp/gstrtpmp4adepay.h
@@ -51,6 +51,8 @@ struct _GstRtpMP4ADepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_mp4a_depay_get_type (void);
+
gboolean gst_rtp_mp4a_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmp4apay.h b/gst/rtp/gstrtpmp4apay.h
index 591e7430f..0447d83c0 100644
--- a/gst/rtp/gstrtpmp4apay.h
+++ b/gst/rtp/gstrtpmp4apay.h
@@ -56,6 +56,8 @@ struct _GstRtpMP4APayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_mp4a_pay_get_type (void);
+
gboolean gst_rtp_mp4a_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmp4gdepay.h b/gst/rtp/gstrtpmp4gdepay.h
index 9d534a5a7..2d1941327 100644
--- a/gst/rtp/gstrtpmp4gdepay.h
+++ b/gst/rtp/gstrtpmp4gdepay.h
@@ -76,6 +76,8 @@ struct _GstRtpMP4GDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_mp4g_depay_get_type (void);
+
gboolean gst_rtp_mp4g_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmp4gpay.h b/gst/rtp/gstrtpmp4gpay.h
index cd4e0d6a3..491437b07 100644
--- a/gst/rtp/gstrtpmp4gpay.h
+++ b/gst/rtp/gstrtpmp4gpay.h
@@ -62,6 +62,8 @@ struct _GstRtpMP4GPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_mp4g_pay_get_type (void);
+
gboolean gst_rtp_mp4g_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmp4vdepay.h b/gst/rtp/gstrtpmp4vdepay.h
index a0d8c1d46..043ea8b9b 100644
--- a/gst/rtp/gstrtpmp4vdepay.h
+++ b/gst/rtp/gstrtpmp4vdepay.h
@@ -52,6 +52,8 @@ struct _GstRtpMP4VDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_mp4v_depay_get_type (void);
+
gboolean gst_rtp_mp4v_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmp4vpay.h b/gst/rtp/gstrtpmp4vpay.h
index df43441f4..9e5b48635 100644
--- a/gst/rtp/gstrtpmp4vpay.h
+++ b/gst/rtp/gstrtpmp4vpay.h
@@ -64,6 +64,8 @@ struct _GstRtpMP4VPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_mp4v_pay_get_type (void);
+
gboolean gst_rtp_mp4v_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmpadepay.h b/gst/rtp/gstrtpmpadepay.h
index 163ea7370..a6e9527e2 100644
--- a/gst/rtp/gstrtpmpadepay.h
+++ b/gst/rtp/gstrtpmpadepay.h
@@ -49,6 +49,8 @@ struct _GstRtpMPADepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_mpa_depay_get_type (void);
+
gboolean gst_rtp_mpa_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmpapay.h b/gst/rtp/gstrtpmpapay.h
index d0696a2ab..cdab19669 100644
--- a/gst/rtp/gstrtpmpapay.h
+++ b/gst/rtp/gstrtpmpapay.h
@@ -54,6 +54,8 @@ struct _GstRtpMPAPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_mpa_pay_get_type (void);
+
gboolean gst_rtp_mpa_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmpvdepay.h b/gst/rtp/gstrtpmpvdepay.h
index 167f16167..ca366d55e 100644
--- a/gst/rtp/gstrtpmpvdepay.h
+++ b/gst/rtp/gstrtpmpvdepay.h
@@ -49,6 +49,8 @@ struct _GstRtpMPVDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_mpv_depay_get_type (void);
+
gboolean gst_rtp_mpv_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpmpvpay.h b/gst/rtp/gstrtpmpvpay.h
index 617de4083..d16162ef3 100644
--- a/gst/rtp/gstrtpmpvpay.h
+++ b/gst/rtp/gstrtpmpvpay.h
@@ -55,6 +55,8 @@ struct _GstRTPMPVPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_mpv_pay_get_type (void);
+
gboolean gst_rtp_mpv_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtppcmadepay.h b/gst/rtp/gstrtppcmadepay.h
index 61d14d93c..12403149f 100644
--- a/gst/rtp/gstrtppcmadepay.h
+++ b/gst/rtp/gstrtppcmadepay.h
@@ -44,6 +44,8 @@ struct _GstRtpPcmaDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_pcma_depay_get_type (void);
+
gboolean gst_rtp_pcma_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtppcmapay.h b/gst/rtp/gstrtppcmapay.h
index f5cf800db..7a39d7dd7 100644
--- a/gst/rtp/gstrtppcmapay.h
+++ b/gst/rtp/gstrtppcmapay.h
@@ -45,6 +45,8 @@ struct _GstRtpPmcaPayClass
GstBaseRTPAudioPayloadClass parent_class;
};
+GType gst_rtp_pcma_pay_get_type (void);
+
gboolean gst_rtp_pcma_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtppcmudepay.h b/gst/rtp/gstrtppcmudepay.h
index b7f8bf7f0..72a37d116 100644
--- a/gst/rtp/gstrtppcmudepay.h
+++ b/gst/rtp/gstrtppcmudepay.h
@@ -44,6 +44,8 @@ struct _GstRtpPcmuDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_pcmu_depay_get_type (void);
+
gboolean gst_rtp_pcmu_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtppcmupay.h b/gst/rtp/gstrtppcmupay.h
index 411ad8f6d..f43ec3b43 100644
--- a/gst/rtp/gstrtppcmupay.h
+++ b/gst/rtp/gstrtppcmupay.h
@@ -45,6 +45,8 @@ struct _GstRtpPcmuPayClass
GstBaseRTPAudioPayloadClass parent_class;
};
+GType gst_rtp_pcmu_pay_get_type (void);
+
gboolean gst_rtp_pcmu_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpqdmdepay.h b/gst/rtp/gstrtpqdmdepay.h
index d678d1a36..e3ae3dc3f 100644
--- a/gst/rtp/gstrtpqdmdepay.h
+++ b/gst/rtp/gstrtpqdmdepay.h
@@ -76,6 +76,8 @@ struct _GstRtpQDM2DepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_qdm2_depay_get_type (void);
+
gboolean gst_rtp_qdm2_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpsirendepay.h b/gst/rtp/gstrtpsirendepay.h
index 78de4a7d6..cbb18cb3e 100644
--- a/gst/rtp/gstrtpsirendepay.h
+++ b/gst/rtp/gstrtpsirendepay.h
@@ -51,6 +51,8 @@ struct _GstRTPSirenDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_siren_depay_get_type (void);
+
gboolean gst_rtp_siren_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpsirenpay.c b/gst/rtp/gstrtpsirenpay.c
index b63244a45..cb7be7044 100644
--- a/gst/rtp/gstrtpsirenpay.c
+++ b/gst/rtp/gstrtpsirenpay.c
@@ -27,7 +27,7 @@
#include <gst/rtp/gstrtpbuffer.h>
/* elementfactory information */
-static GstElementDetails gst_rtpsirenpay_details = {
+static GstElementDetails gst_rtp_siren_pay_details = {
"RTP Payloader for Siren Audio",
"Codec/Payloader/Network",
"Packetize Siren audio streams into RTP packets",
@@ -37,14 +37,14 @@ static GstElementDetails gst_rtpsirenpay_details = {
GST_DEBUG_CATEGORY_STATIC (rtpsirenpay_debug);
#define GST_CAT_DEFAULT (rtpsirenpay_debug)
-static GstStaticPadTemplate gst_rtpsirenpay_sink_template =
+static GstStaticPadTemplate gst_rtp_siren_pay_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-siren, " "dct-length = (int) 320")
);
-static GstStaticPadTemplate gst_rtpsirenpay_src_template =
+static GstStaticPadTemplate gst_rtp_siren_pay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
@@ -56,39 +56,40 @@ GST_STATIC_PAD_TEMPLATE ("src",
"bitrate = (string) \"16000\", " "dct-length = (int) 320")
);
-static gboolean gst_rtpsirenpay_setcaps (GstBaseRTPPayload * payload,
+static gboolean gst_rtp_siren_pay_setcaps (GstBaseRTPPayload * payload,
GstCaps * caps);
-GST_BOILERPLATE (GstRTPSirenPay, gst_rtpsirenpay, GstBaseRTPAudioPayload,
+GST_BOILERPLATE (GstRTPSirenPay, gst_rtp_siren_pay, GstBaseRTPAudioPayload,
GST_TYPE_BASE_RTP_AUDIO_PAYLOAD);
static void
-gst_rtpsirenpay_base_init (gpointer klass)
+gst_rtp_siren_pay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtpsirenpay_sink_template));
+ gst_static_pad_template_get (&gst_rtp_siren_pay_sink_template));
gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtpsirenpay_src_template));
- gst_element_class_set_details (element_class, &gst_rtpsirenpay_details);
+ gst_static_pad_template_get (&gst_rtp_siren_pay_src_template));
+ gst_element_class_set_details (element_class, &gst_rtp_siren_pay_details);
}
static void
-gst_rtpsirenpay_class_init (GstRTPSirenPayClass * klass)
+gst_rtp_siren_pay_class_init (GstRTPSirenPayClass * klass)
{
GstBaseRTPPayloadClass *gstbasertppayload_class;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- gstbasertppayload_class->set_caps = gst_rtpsirenpay_setcaps;
+ gstbasertppayload_class->set_caps = gst_rtp_siren_pay_setcaps;
GST_DEBUG_CATEGORY_INIT (rtpsirenpay_debug, "rtpsirenpay", 0,
"siren audio RTP payloader");
}
static void
-gst_rtpsirenpay_init (GstRTPSirenPay * rtpsirenpay, GstRTPSirenPayClass * klass)
+gst_rtp_siren_pay_init (GstRTPSirenPay * rtpsirenpay,
+ GstRTPSirenPayClass * klass)
{
GstBaseRTPPayload *basertppayload;
GstBaseRTPAudioPayload *basertpaudiopayload;
@@ -105,7 +106,7 @@ gst_rtpsirenpay_init (GstRTPSirenPay * rtpsirenpay, GstRTPSirenPayClass * klass)
}
static gboolean
-gst_rtpsirenpay_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
+gst_rtp_siren_pay_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
{
GstRTPSirenPay *rtpsirenpay;
GstBaseRTPAudioPayload *basertpaudiopayload;
diff --git a/gst/rtp/gstrtpsirenpay.h b/gst/rtp/gstrtpsirenpay.h
index 71eb83937..cb6625eaa 100644
--- a/gst/rtp/gstrtpsirenpay.h
+++ b/gst/rtp/gstrtpsirenpay.h
@@ -27,7 +27,7 @@
G_BEGIN_DECLS
#define GST_TYPE_RTP_SIREN_PAY \
- (gst_rtpsirenpay_get_type())
+ (gst_rtp_siren_pay_get_type())
#define GST_RTP_SIREN_PAY(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_SIREN_PAY,GstRTPSirenPay))
#define GST_RTP_SIREN_PAY_CLASS(klass) \
@@ -49,6 +49,8 @@ struct _GstRTPSirenPayClass
GstBaseRTPAudioPayloadClass parent_class;
};
+GType gst_rtp_siren_pay_get_type (void);
+
gboolean gst_rtp_siren_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpspeexdepay.h b/gst/rtp/gstrtpspeexdepay.h
index 4a76a633d..07b727f85 100644
--- a/gst/rtp/gstrtpspeexdepay.h
+++ b/gst/rtp/gstrtpspeexdepay.h
@@ -44,6 +44,8 @@ struct _GstRtpSPEEXDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_speex_depay_get_type (void);
+
gboolean gst_rtp_speex_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpspeexpay.h b/gst/rtp/gstrtpspeexpay.h
index b50f7505f..f43986ae0 100644
--- a/gst/rtp/gstrtpspeexpay.h
+++ b/gst/rtp/gstrtpspeexpay.h
@@ -47,6 +47,8 @@ struct _GstRtpSPEEXPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_speex_pay_get_type (void);
+
gboolean gst_rtp_speex_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpsv3vdepay.h b/gst/rtp/gstrtpsv3vdepay.h
index cbe5d1302..7c55afdee 100644
--- a/gst/rtp/gstrtpsv3vdepay.h
+++ b/gst/rtp/gstrtpsv3vdepay.h
@@ -58,6 +58,8 @@ struct _GstRtpSV3VDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_sv3v_depay_get_type (void);
+
gboolean gst_rtp_sv3v_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtptheoradepay.h b/gst/rtp/gstrtptheoradepay.h
index 9c2fcde95..0d1a911f9 100644
--- a/gst/rtp/gstrtptheoradepay.h
+++ b/gst/rtp/gstrtptheoradepay.h
@@ -61,6 +61,8 @@ struct _GstRtpTheoraDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_theora_depay_get_type (void);
+
gboolean gst_rtp_theora_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtptheorapay.h b/gst/rtp/gstrtptheorapay.h
index 5b86324fb..d3db359eb 100644
--- a/gst/rtp/gstrtptheorapay.h
+++ b/gst/rtp/gstrtptheorapay.h
@@ -68,6 +68,8 @@ struct _GstRtpTheoraPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_theora_pay_get_type (void);
+
gboolean gst_rtp_theora_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpvorbisdepay.h b/gst/rtp/gstrtpvorbisdepay.h
index edb85b823..0b06118eb 100644
--- a/gst/rtp/gstrtpvorbisdepay.h
+++ b/gst/rtp/gstrtpvorbisdepay.h
@@ -61,6 +61,8 @@ struct _GstRtpVorbisDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_vorbis_depay_get_type (void);
+
gboolean gst_rtp_vorbis_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpvorbispay.h b/gst/rtp/gstrtpvorbispay.h
index 387d7dd08..9c86b5ba5 100644
--- a/gst/rtp/gstrtpvorbispay.h
+++ b/gst/rtp/gstrtpvorbispay.h
@@ -68,6 +68,8 @@ struct _GstRtpVorbisPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_vorbis_pay_get_type (void);
+
gboolean gst_rtp_vorbis_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpvrawdepay.h b/gst/rtp/gstrtpvrawdepay.h
index cc2eca2e2..77cb6bf70 100644
--- a/gst/rtp/gstrtpvrawdepay.h
+++ b/gst/rtp/gstrtpvrawdepay.h
@@ -63,6 +63,8 @@ struct _GstRtpVRawDepayClass
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_vraw_depay_get_type (void);
+
gboolean gst_rtp_vraw_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtp/gstrtpvrawpay.h b/gst/rtp/gstrtpvrawpay.h
index 836198b5e..44a7ee1b3 100644
--- a/gst/rtp/gstrtpvrawpay.h
+++ b/gst/rtp/gstrtpvrawpay.h
@@ -59,6 +59,8 @@ struct _GstRtpVRawPayClass
GstBaseRTPPayloadClass parent_class;
};
+GType gst_rtp_vraw_pay_get_type (void);
+
gboolean gst_rtp_vraw_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
diff --git a/gst/rtsp/gstrtpdec.c b/gst/rtsp/gstrtpdec.c
index 0382766f6..e7aab03ad 100644
--- a/gst/rtsp/gstrtpdec.c
+++ b/gst/rtsp/gstrtpdec.c
@@ -224,7 +224,7 @@ gst_rtp_dec_base_init (gpointer klass)
/* BOXED:UINT,UINT */
#define g_marshal_value_peek_uint(v) g_value_get_uint (v)
-void
+static void
gst_rtp_dec_marshal_BOXED__UINT_UINT (GClosure * closure,
GValue * return_value,
guint n_param_values,
@@ -259,7 +259,7 @@ gst_rtp_dec_marshal_BOXED__UINT_UINT (GClosure * closure,
g_value_take_boxed (return_value, v_return);
}
-void
+static void
gst_rtp_dec_marshal_VOID__UINT_UINT (GClosure * closure,
GValue * return_value,
guint n_param_values,
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 2c68756b7..df686145a 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -745,7 +745,7 @@ find_stream_by_setup (GstRTSPStream * stream, gconstpointer a)
return -1;
}
-GstRTSPStream *
+static GstRTSPStream *
find_stream (GstRTSPSrc * src, gconstpointer data, gconstpointer func)
{
GList *lstream;
@@ -3512,7 +3512,7 @@ pause:
}
#ifndef GST_DISABLE_GST_DEBUG
-const gchar *
+static const gchar *
gst_rtsp_auth_method_to_string (GstRTSPAuthMethod method)
{
gint index = 0;
diff --git a/gst/smpte/gstmask.c b/gst/smpte/gstmask.c
index dfb856c21..9c0ba9235 100644
--- a/gst/smpte/gstmask.c
+++ b/gst/smpte/gstmask.c
@@ -24,8 +24,6 @@
#include "gstmask.h"
#include "paint.h"
-extern void _gst_barboxwipes_register (void);
-
static GList *masks = NULL;
void
diff --git a/gst/smpte/gstmask.h b/gst/smpte/gstmask.h
index f9cf6a9ab..7e29246ec 100644
--- a/gst/smpte/gstmask.h
+++ b/gst/smpte/gstmask.h
@@ -59,4 +59,6 @@ const GList* gst_mask_get_definitions (void);
GstMask* gst_mask_factory_new (gint type, gint bpp, gint width, gint height);
void gst_mask_destroy (GstMask *mask);
+void _gst_barboxwipes_register (void);
+
#endif /* __GST_MASK_H__ */
diff --git a/gst/videobox/gstvideobox.h b/gst/videobox/gstvideobox.h
index 61b2914fe..9072a6b9e 100644
--- a/gst/videobox/gstvideobox.h
+++ b/gst/videobox/gstvideobox.h
@@ -79,4 +79,6 @@ struct _GstVideoBoxClass
GstBaseTransformClass parent_class;
};
+GType gst_video_box_get_type (void);
+
#endif /* __GST_VIDEO_BOX_H__ */
diff --git a/gst/videocrop/gstvideocrop.h b/gst/videocrop/gstvideocrop.h
index 9911c7c57..477f21b06 100644
--- a/gst/videocrop/gstvideocrop.h
+++ b/gst/videocrop/gstvideocrop.h
@@ -84,6 +84,8 @@ struct _GstVideoCropClass
GstBaseTransformClass basetransform_class;
};
+GType gst_video_crop_get_type (void);
+
G_END_DECLS
#endif /* __GST_VIDEO_CROP_H__ */
diff --git a/gst/videofilter/gstgamma.c b/gst/videofilter/gstgamma.c
index 12ceb13c2..a45688181 100644
--- a/gst/videofilter/gstgamma.c
+++ b/gst/videofilter/gstgamma.c
@@ -215,7 +215,7 @@ gst_gamma_calculate_tables (GstGamma * gamma)
}
#ifndef HAVE_LIBOIL
-void
+static void
oil_tablelookup_u8 (guint8 * dest, int dstr, guint8 * src, int sstr,
guint8 * table, int tstr, int n)
{
diff --git a/gst/videofilter/gstvideobalance.c b/gst/videofilter/gstvideobalance.c
index c9152123f..31578fc84 100644
--- a/gst/videofilter/gstvideobalance.c
+++ b/gst/videofilter/gstvideobalance.c
@@ -159,7 +159,7 @@ gst_video_balance_update_properties (GstVideoBalance * videobalance)
}
#ifndef HAVE_LIBOIL
-void
+static void
oil_tablelookup_u8 (guint8 * dest, int dstr, guint8 * src, int sstr,
guint8 * table, int tstr, int n)
{
diff --git a/gst/videomixer/videomixer.c b/gst/videomixer/videomixer.c
index 4ce38bfbe..bb72a5911 100644
--- a/gst/videomixer/videomixer.c
+++ b/gst/videomixer/videomixer.c
@@ -114,6 +114,7 @@ enum
PROP_PAD_ALPHA
};
+GType gst_videomixer_pad_get_type (void);
G_DEFINE_TYPE (GstVideoMixerPad, gst_videomixer_pad, GST_TYPE_PAD);
static void
diff --git a/gst/videomixer/videomixer.h b/gst/videomixer/videomixer.h
index 3d5854b54..75273793b 100644
--- a/gst/videomixer/videomixer.h
+++ b/gst/videomixer/videomixer.h
@@ -125,5 +125,7 @@ struct _GstVideoMixerClass
GstElementClass parent_class;
};
+GType gst_video_mixer_get_type (void);
+
G_END_DECLS
#endif /* __GST_VIDEO_MIXER_H__ */
diff --git a/gst/wavenc/gstwavenc.h b/gst/wavenc/gstwavenc.h
index f4f9aac1e..3fe167ec6 100644
--- a/gst/wavenc/gstwavenc.h
+++ b/gst/wavenc/gstwavenc.h
@@ -61,6 +61,8 @@ struct _GstWavEncClass {
GstElementClass parent_class;
};
+GType gst_wavenc_get_type (void);
+
G_END_DECLS
#endif /* __GST_WAV_ENC_H__ */
diff --git a/sys/v4l2/gstv4l2colorbalance.h b/sys/v4l2/gstv4l2colorbalance.h
index d1cd62157..9e183f014 100644
--- a/sys/v4l2/gstv4l2colorbalance.h
+++ b/sys/v4l2/gstv4l2colorbalance.h
@@ -90,7 +90,7 @@ interface_as_function ## _color_balance_get_value (GstColorBalance * balance,
return gst_v4l2_color_balance_get_value(this->v4l2object, channel); \
} \
\
-void \
+static void \
interface_as_function ## _color_balance_interface_init (GstColorBalanceClass * klass) \
{ \
GST_COLOR_BALANCE_TYPE (klass) = GST_COLOR_BALANCE_HARDWARE; \
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c
index 04d2ad09d..7d9409e7b 100644
--- a/sys/v4l2/gstv4l2object.c
+++ b/sys/v4l2/gstv4l2object.c
@@ -282,7 +282,7 @@ gst_v4l2_probe_get_values (GstPropertyProbe * probe,
}
#define GST_TYPE_V4L2_DEVICE_FLAGS (gst_v4l2_device_get_type ())
-GType
+static GType
gst_v4l2_device_get_type (void)
{
static GType v4l2_device_type = 0;
diff --git a/sys/v4l2/gstv4l2sink.c b/sys/v4l2/gstv4l2sink.c
index d2d5cb342..26773be7a 100644
--- a/sys/v4l2/gstv4l2sink.c
+++ b/sys/v4l2/gstv4l2sink.c
@@ -119,7 +119,7 @@ gst_v4l2sink_interface_init (GstImplementsInterfaceClass * klass)
klass->supported = gst_v4l2sink_iface_supported;
}
-void
+static void
gst_v4l2sink_init_interfaces (GType type)
{
static const GInterfaceInfo v4l2iface_info = {
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c
index 7dd773716..81346d7e0 100644
--- a/sys/v4l2/gstv4l2src.c
+++ b/sys/v4l2/gstv4l2src.c
@@ -128,7 +128,7 @@ gst_v4l2src_interface_init (GstImplementsInterfaceClass * klass)
klass->supported = gst_v4l2src_iface_supported;
}
-void
+static void
gst_v4l2src_init_interfaces (GType type)
{
static const GInterfaceInfo urihandler_info = {
diff --git a/sys/v4l2/gstv4l2tuner.h b/sys/v4l2/gstv4l2tuner.h
index 5ec2b67e1..bf9ff94da 100644
--- a/sys/v4l2/gstv4l2tuner.h
+++ b/sys/v4l2/gstv4l2tuner.h
@@ -173,7 +173,7 @@ interface_as_function ## _tuner_signal_strength (GstTuner * mixer,
return gst_v4l2_tuner_signal_strength (this->v4l2object, channel); \
} \
\
-void \
+static void \
interface_as_function ## _tuner_interface_init (GstTunerClass * klass) \
{ \
/* default virtual functions */ \
diff --git a/sys/v4l2/gstv4l2vidorient.h b/sys/v4l2/gstv4l2vidorient.h
index 965fc0597..39682e2f1 100644
--- a/sys/v4l2/gstv4l2vidorient.h
+++ b/sys/v4l2/gstv4l2vidorient.h
@@ -100,7 +100,7 @@ gboolean gst_v4l2_video_orientation_set_vcenter (GstV4l2Object *v4l2object, gint
return gst_v4l2_video_orientation_set_vcenter (this->v4l2object, center); \
} \
\
- void \
+ static void \
interface_as_function ## _video_orientation_interface_init (GstVideoOrientationInterface * klass) \
{ \
/* default virtual functions */ \
diff --git a/sys/ximage/ximageutil.c b/sys/ximage/ximageutil.c
index e0d2c32ce..0ef4b06c5 100644
--- a/sys/ximage/ximageutil.c
+++ b/sys/ximage/ximageutil.c
@@ -316,8 +316,8 @@ gst_ximagesrc_buffer_finalize (GstXImageSrcBuffer * ximage)
beach:
- GST_MINI_OBJECT_CLASS (ximagesrc_buffer_parent_class)->
- finalize (GST_MINI_OBJECT (ximage));
+ GST_MINI_OBJECT_CLASS (ximagesrc_buffer_parent_class)->finalize
+ (GST_MINI_OBJECT (ximage));
return;
}
@@ -351,7 +351,7 @@ gst_ximagesrc_buffer_class_init (gpointer g_class, gpointer class_data)
gst_ximagesrc_buffer_finalize;
}
-GType
+static GType
gst_ximagesrc_buffer_get_type (void)
{
static GType _gst_ximagesrc_buffer_type;
diff --git a/tests/check/elements/aspectratiocrop.c b/tests/check/elements/aspectratiocrop.c
index 4f8055207..5d42bfb89 100644
--- a/tests/check/elements/aspectratiocrop.c
+++ b/tests/check/elements/aspectratiocrop.c
@@ -46,7 +46,7 @@
GST_VIDEO_CAPS_RGB_16 ";" \
GST_VIDEO_CAPS_RGB_15
-GstBuffer *
+static GstBuffer *
make_buffer_with_caps (const gchar * caps_string, int buffer_size)
{
GstCaps *caps;
@@ -62,7 +62,7 @@ make_buffer_with_caps (const gchar * caps_string, int buffer_size)
return temp;
}
-void
+static void
check_aspectratiocrop (const gchar * in_string, const gchar * out_string,
gint in_size, gint out_size, gint ar_n, gint ar_d)
{
diff --git a/tests/check/elements/audioamplify.c b/tests/check/elements/audioamplify.c
index a17649afa..48ce8ffbd 100644
--- a/tests/check/elements/audioamplify.c
+++ b/tests/check/elements/audioamplify.c
@@ -64,8 +64,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"width = (int) 16, " "depth = (int) 16, " "signed = (bool) TRUE")
);
-GstElement *
-setup_amplify ()
+static GstElement *
+setup_amplify (void)
{
GstElement *amplify;
@@ -79,7 +79,7 @@ setup_amplify ()
return amplify;
}
-void
+static void
cleanup_amplify (GstElement * amplify)
{
GST_DEBUG ("cleanup_amplify");
@@ -433,7 +433,7 @@ GST_START_TEST (test_200_wrap_positive)
GST_END_TEST;
-Suite *
+static Suite *
amplify_suite (void)
{
Suite *s = suite_create ("amplify");
diff --git a/tests/check/elements/audiochebband.c b/tests/check/elements/audiochebband.c
index 13ffa5fe8..73a8b15d7 100644
--- a/tests/check/elements/audiochebband.c
+++ b/tests/check/elements/audiochebband.c
@@ -62,8 +62,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"endianness = (int) BYTE_ORDER, " "width = (int) { 32, 64 }")
);
-GstElement *
-setup_audiochebband ()
+static GstElement *
+setup_audiochebband (void)
{
GstElement *audiochebband;
@@ -77,7 +77,7 @@ setup_audiochebband ()
return audiochebband;
}
-void
+static void
cleanup_audiochebband (GstElement * audiochebband)
{
GST_DEBUG ("cleanup_audiochebband");
@@ -1485,7 +1485,7 @@ GST_START_TEST (test_type2_64_br_22050hz)
GST_END_TEST;
-Suite *
+static Suite *
audiochebband_suite (void)
{
Suite *s = suite_create ("audiochebband");
diff --git a/tests/check/elements/audiocheblimit.c b/tests/check/elements/audiocheblimit.c
index 70645b983..3b4650471 100644
--- a/tests/check/elements/audiocheblimit.c
+++ b/tests/check/elements/audiocheblimit.c
@@ -62,8 +62,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"endianness = (int) BYTE_ORDER, " "width = (int) { 32, 64 }")
);
-GstElement *
-setup_audiocheblimit ()
+static GstElement *
+setup_audiocheblimit (void)
{
GstElement *audiocheblimit;
@@ -77,7 +77,7 @@ setup_audiocheblimit ()
return audiocheblimit;
}
-void
+static void
cleanup_audiocheblimit (GstElement * audiocheblimit)
{
GST_DEBUG ("cleanup_audiocheblimit");
@@ -958,7 +958,7 @@ GST_START_TEST (test_type2_64_hp_22050hz)
GST_END_TEST;
-Suite *
+static Suite *
audiocheblimit_suite (void)
{
Suite *s = suite_create ("audiocheblimit");
diff --git a/tests/check/elements/audiodynamic.c b/tests/check/elements/audiodynamic.c
index 75ecc369d..111977940 100644
--- a/tests/check/elements/audiodynamic.c
+++ b/tests/check/elements/audiodynamic.c
@@ -64,8 +64,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"width = (int) 16, " "depth = (int) 16, " "signed = (bool) TRUE")
);
-GstElement *
-setup_dynamic ()
+static GstElement *
+setup_dynamic (void)
{
GstElement *dynamic;
@@ -79,7 +79,7 @@ setup_dynamic ()
return dynamic;
}
-void
+static void
cleanup_dynamic (GstElement * dynamic)
{
GST_DEBUG ("cleanup_dynamic");
@@ -424,7 +424,7 @@ GST_START_TEST (test_expand_hard_0_200)
GST_END_TEST;
-Suite *
+static Suite *
dynamic_suite (void)
{
Suite *s = suite_create ("dynamic");
diff --git a/tests/check/elements/audioecho.c b/tests/check/elements/audioecho.c
index c5d179fb0..fa88c3ffa 100644
--- a/tests/check/elements/audioecho.c
+++ b/tests/check/elements/audioecho.c
@@ -51,8 +51,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"endianness = (int) BYTE_ORDER, " "width = (int) { 32, 64 }")
);
-GstElement *
-setup_echo ()
+static GstElement *
+setup_echo (void)
{
GstElement *echo;
@@ -66,7 +66,7 @@ setup_echo ()
return echo;
}
-void
+static void
cleanup_echo (GstElement * echo)
{
GST_DEBUG ("cleanup_echo");
diff --git a/tests/check/elements/audioinvert.c b/tests/check/elements/audioinvert.c
index 4150a848b..39ff80e09 100644
--- a/tests/check/elements/audioinvert.c
+++ b/tests/check/elements/audioinvert.c
@@ -64,8 +64,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"width = (int) 16, " "depth = (int) 16, " "signed = (bool) TRUE")
);
-GstElement *
-setup_invert ()
+static GstElement *
+setup_invert (void)
{
GstElement *invert;
@@ -79,7 +79,7 @@ setup_invert ()
return invert;
}
-void
+static void
cleanup_invert (GstElement * invert)
{
GST_DEBUG ("cleanup_invert");
@@ -253,7 +253,7 @@ GST_START_TEST (test_25_inverse)
GST_END_TEST;
-Suite *
+static Suite *
invert_suite (void)
{
Suite *s = suite_create ("invert");
diff --git a/tests/check/elements/audiopanorama.c b/tests/check/elements/audiopanorama.c
index e8d7c92b2..07abca737 100644
--- a/tests/check/elements/audiopanorama.c
+++ b/tests/check/elements/audiopanorama.c
@@ -89,8 +89,8 @@ static GstStaticPadTemplate ssrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"width = (int) 16, " "depth = (int) 16, " "signed = (bool) TRUE")
);
-GstElement *
-setup_panorama_m ()
+static GstElement *
+setup_panorama_m (void)
{
GstElement *panorama;
@@ -104,8 +104,8 @@ setup_panorama_m ()
return panorama;
}
-GstElement *
-setup_panorama_s ()
+static GstElement *
+setup_panorama_s (void)
{
GstElement *panorama;
@@ -119,7 +119,7 @@ setup_panorama_s ()
return panorama;
}
-void
+static void
cleanup_panorama (GstElement * panorama)
{
GST_DEBUG ("cleanup_panorama");
@@ -665,7 +665,7 @@ GST_START_TEST (test_wrong_caps)
GST_END_TEST;
-Suite *
+static Suite *
panorama_suite (void)
{
Suite *s = suite_create ("panorama");
diff --git a/tests/check/elements/audiowsincband.c b/tests/check/elements/audiowsincband.c
index fc4805dfd..137f425fa 100644
--- a/tests/check/elements/audiowsincband.c
+++ b/tests/check/elements/audiowsincband.c
@@ -62,8 +62,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"endianness = (int) BYTE_ORDER, " "width = (int) { 32, 64 } ")
);
-GstElement *
-setup_audiowsincband ()
+static GstElement *
+setup_audiowsincband (void)
{
GstElement *audiowsincband;
@@ -77,7 +77,7 @@ setup_audiowsincband ()
return audiowsincband;
}
-void
+static void
cleanup_audiowsincband (GstElement * audiowsincband)
{
GST_DEBUG ("cleanup_audiowsincband");
@@ -967,7 +967,7 @@ GST_START_TEST (test_64_small_buffer)
GST_END_TEST;
-Suite *
+static Suite *
audiowsincband_suite (void)
{
Suite *s = suite_create ("audiowsincband");
diff --git a/tests/check/elements/audiowsinclimit.c b/tests/check/elements/audiowsinclimit.c
index 3a6280d30..a5f029131 100644
--- a/tests/check/elements/audiowsinclimit.c
+++ b/tests/check/elements/audiowsinclimit.c
@@ -62,8 +62,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"endianness = (int) BYTE_ORDER, " "width = (int) { 32, 64 } ")
);
-GstElement *
-setup_audiowsinclimit ()
+static GstElement *
+setup_audiowsinclimit (void)
{
GstElement *audiowsinclimit;
@@ -77,7 +77,7 @@ setup_audiowsinclimit ()
return audiowsinclimit;
}
-void
+static void
cleanup_audiowsinclimit (GstElement * audiowsinclimit)
{
GST_DEBUG ("cleanup_audiowsinclimit");
@@ -665,7 +665,7 @@ GST_START_TEST (test_64_small_buffer)
GST_END_TEST;
-Suite *
+static Suite *
audiowsinclimit_suite (void)
{
Suite *s = suite_create ("audiowsinclimit");
diff --git a/tests/check/elements/avimux.c b/tests/check/elements/avimux.c
index 28bcb8dae..922221d8c 100644
--- a/tests/check/elements/avimux.c
+++ b/tests/check/elements/avimux.c
@@ -53,7 +53,7 @@ static GstStaticPadTemplate srcaudiotemplate = GST_STATIC_PAD_TEMPLATE ("src",
/* setup and teardown needs some special handling for muxer */
-GstPad *
+static GstPad *
setup_src_pad (GstElement * element,
GstStaticPadTemplate * template, GstCaps * caps, gchar * sinkname)
{
@@ -83,7 +83,7 @@ setup_src_pad (GstElement * element,
return srcpad;
}
-void
+static void
teardown_src_pad (GstElement * element, gchar * sinkname)
{
GstPad *srcpad, *sinkpad;
@@ -115,7 +115,7 @@ teardown_src_pad (GstElement * element, gchar * sinkname)
}
-GstElement *
+static GstElement *
setup_avimux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
{
GstElement *avimux;
@@ -130,7 +130,7 @@ setup_avimux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
return avimux;
}
-void
+static void
cleanup_avimux (GstElement * avimux, gchar * sinkname)
{
GST_DEBUG ("cleanup_avimux");
@@ -143,7 +143,7 @@ cleanup_avimux (GstElement * avimux, gchar * sinkname)
gst_check_teardown_element (avimux);
}
-void
+static void
check_avimux_pad (GstStaticPadTemplate * srctemplate, gchar * src_caps_string,
gchar * chunk_id, gchar * sinkname)
{
@@ -244,7 +244,7 @@ GST_START_TEST (test_audio_pad)
GST_END_TEST;
-Suite *
+static Suite *
avimux_suite (void)
{
Suite *s = suite_create ("avimux");
diff --git a/tests/check/elements/avisubtitle.c b/tests/check/elements/avisubtitle.c
index 52f8586a5..06598ac31 100644
--- a/tests/check/elements/avisubtitle.c
+++ b/tests/check/elements/avisubtitle.c
@@ -66,8 +66,8 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS ("application/x-subtitle-avi")
);
-GstElement *
-setup_avisubtitle ()
+static GstElement *
+setup_avisubtitle (void)
{
GstElement *avisubtitle;
GstCaps *caps;
@@ -85,7 +85,7 @@ setup_avisubtitle ()
return avisubtitle;
}
-void
+static void
cleanup_avisubtitle (GstElement * avisubtitle)
{
gst_pad_set_active (mysinkpad, FALSE);
@@ -95,7 +95,7 @@ cleanup_avisubtitle (GstElement * avisubtitle)
gst_check_teardown_element (avisubtitle);
}
-void
+static void
check_wrong_buffer (guint8 * data, guint length)
{
GstBuffer *buffer = gst_buffer_new ();
@@ -118,7 +118,7 @@ check_wrong_buffer (guint8 * data, guint length)
cleanup_avisubtitle (avisubtitle);
}
-void
+static void
check_correct_buffer (guint8 * src_data, guint src_size, guint8 * dst_data,
guint dst_size)
{
@@ -248,7 +248,7 @@ GST_START_TEST (test_avisubtitle_positive)
GST_END_TEST;
-Suite *
+static Suite *
avisubtitle_suite (void)
{
Suite *s = suite_create ("avisubtitle");
diff --git a/tests/check/elements/cmmldec.c b/tests/check/elements/cmmldec.c
index 5047ff580..dff3d20fd 100644
--- a/tests/check/elements/cmmldec.c
+++ b/tests/check/elements/cmmldec.c
@@ -580,7 +580,7 @@ GST_START_TEST (test_sink_query_convert)
GST_END_TEST;
-Suite *
+static Suite *
cmmldec_suite ()
{
Suite *s = suite_create ("cmmldec");
diff --git a/tests/check/elements/equalizer.c b/tests/check/elements/equalizer.c
index 44270d0ce..29b2e3862 100644
--- a/tests/check/elements/equalizer.c
+++ b/tests/check/elements/equalizer.c
@@ -55,8 +55,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"endianness = (int) BYTE_ORDER, " "width = (int) 64 ")
);
-GstElement *
-setup_equalizer ()
+static GstElement *
+setup_equalizer (void)
{
GstElement *equalizer;
@@ -70,7 +70,7 @@ setup_equalizer ()
return equalizer;
}
-void
+static void
cleanup_equalizer (GstElement * equalizer)
{
GST_DEBUG ("cleanup_equalizer");
@@ -294,7 +294,7 @@ GST_START_TEST (test_equalizer_band_number_changing)
GST_END_TEST;
-Suite *
+static Suite *
equalizer_suite (void)
{
Suite *s = suite_create ("equalizer");
diff --git a/tests/check/elements/level.c b/tests/check/elements/level.c
index e37c0225d..838b87235 100644
--- a/tests/check/elements/level.c
+++ b/tests/check/elements/level.c
@@ -64,8 +64,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
);
/* takes over reference for outcaps */
-GstElement *
-setup_level ()
+static GstElement *
+setup_level (void)
{
GstElement *level;
@@ -79,7 +79,7 @@ setup_level ()
return level;
}
-void
+static void
cleanup_level (GstElement * level)
{
GST_DEBUG ("cleanup_level");
@@ -296,7 +296,7 @@ GST_START_TEST (test_int16_panned)
GST_END_TEST;
-Suite *
+static Suite *
level_suite (void)
{
Suite *s = suite_create ("level");
diff --git a/tests/check/elements/matroskamux.c b/tests/check/elements/matroskamux.c
index 5eb924fd3..efb0fb6bb 100644
--- a/tests/check/elements/matroskamux.c
+++ b/tests/check/elements/matroskamux.c
@@ -54,7 +54,7 @@ static GstStaticPadTemplate srcac3template = GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS (AC3_CAPS_STRING));
-GstPad *
+static GstPad *
setup_src_pad (GstElement * element,
GstStaticPadTemplate * template, GstCaps * caps)
{
@@ -85,7 +85,7 @@ setup_src_pad (GstElement * element,
return srcpad;
}
-void
+static void
teardown_src_pad (GstElement * element)
{
GstPad *srcpad, *sinkpad;
@@ -110,7 +110,7 @@ teardown_src_pad (GstElement * element)
gst_object_unref (srcpad);
}
-GstPad *
+static GstPad *
setup_sink_pad (GstElement * element, GstStaticPadTemplate * template,
GstCaps * caps)
{
@@ -138,7 +138,7 @@ setup_sink_pad (GstElement * element, GstStaticPadTemplate * template,
return sinkpad;
}
-void
+static void
teardown_sink_pad (GstElement * element)
{
GstPad *srcpad, *sinkpad;
@@ -160,7 +160,7 @@ teardown_sink_pad (GstElement * element)
}
-GstElement *
+static GstElement *
setup_matroskamux (GstStaticPadTemplate * srctemplate)
{
GstElement *matroskamux;
@@ -173,7 +173,7 @@ setup_matroskamux (GstStaticPadTemplate * srctemplate)
return matroskamux;
}
-void
+static void
cleanup_matroskamux (GstElement * matroskamux)
{
GST_DEBUG ("cleanup_matroskamux");
@@ -184,7 +184,7 @@ cleanup_matroskamux (GstElement * matroskamux)
gst_check_teardown_element (matroskamux);
}
-void
+static void
check_buffer_data (GstBuffer * buffer, void *data, size_t data_size)
{
fail_unless (GST_BUFFER_SIZE (buffer) == data_size);
@@ -404,7 +404,7 @@ GST_START_TEST (test_block_group)
GST_END_TEST;
-Suite *
+static Suite *
matroskamux_suite (void)
{
Suite *s = suite_create ("matroskamux");
diff --git a/tests/check/elements/multifile.c b/tests/check/elements/multifile.c
index ef935558a..6fe527eff 100644
--- a/tests/check/elements/multifile.c
+++ b/tests/check/elements/multifile.c
@@ -40,7 +40,7 @@ run_pipeline (GstElement * pipeline)
gst_element_set_state (pipeline, GST_STATE_NULL);
}
-gchar *
+static gchar *
g_mkdtemp (const gchar * template)
{
gchar *s;
diff --git a/tests/check/elements/rganalysis.c b/tests/check/elements/rganalysis.c
index 143feec99..89ff92eaa 100644
--- a/tests/check/elements/rganalysis.c
+++ b/tests/check/elements/rganalysis.c
@@ -149,8 +149,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS (RG_ANALYSIS_CAPS_TEMPLATE_STRING)
);
-GstElement *
-setup_rganalysis ()
+static GstElement *
+setup_rganalysis (void)
{
GstElement *analysis;
GstBus *bus;
@@ -170,7 +170,7 @@ setup_rganalysis ()
return analysis;
}
-void
+static void
cleanup_rganalysis (GstElement * element)
{
GST_DEBUG ("cleanup_rganalysis");
@@ -1764,7 +1764,7 @@ MAKE_GAIN_TEST_INT16_STEREO (32000, 8);
MAKE_GAIN_TEST_INT16_STEREO (44100, 8);
MAKE_GAIN_TEST_INT16_STEREO (48000, 8);
-Suite *
+static Suite *
rganalysis_suite (void)
{
Suite *s = suite_create ("rganalysis");
diff --git a/tests/check/elements/rglimiter.c b/tests/check/elements/rglimiter.c
index ea0bd75c7..54747d8dc 100644
--- a/tests/check/elements/rglimiter.c
+++ b/tests/check/elements/rglimiter.c
@@ -49,8 +49,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS (RG_LIMITER_CAPS_TEMPLATE_STRING)
);
-GstElement *
-setup_rglimiter ()
+static GstElement *
+setup_rglimiter (void)
{
GstElement *element;
@@ -64,7 +64,7 @@ setup_rglimiter ()
return element;
}
-void
+static void
cleanup_rglimiter (GstElement * element)
{
GST_DEBUG ("cleanup_rglimiter");
@@ -89,6 +89,7 @@ set_playing_state (GstElement * element)
static const gfloat test_input[] = {
-2.0, -1.0, -0.75, -0.5, -0.25, 0.0, 0.25, 0.5, 0.75, 1.0, 2.0
};
+
static const gfloat test_output[] = {
-0.99752737684336523, /* -2.0 */
-0.88079707797788243, /* -1.0 */
@@ -236,7 +237,7 @@ GST_START_TEST (test_gap)
GST_END_TEST;
-Suite *
+static Suite *
rglimiter_suite (void)
{
Suite *s = suite_create ("rglimiter");
diff --git a/tests/check/elements/rgvolume.c b/tests/check/elements/rgvolume.c
index 7159bb760..28d41349f 100644
--- a/tests/check/elements/rgvolume.c
+++ b/tests/check/elements/rgvolume.c
@@ -60,8 +60,8 @@ event_func (GstPad * pad, GstEvent * event)
return TRUE;
}
-GstElement *
-setup_rgvolume ()
+static GstElement *
+setup_rgvolume (void)
{
GstElement *element;
@@ -79,7 +79,7 @@ setup_rgvolume ()
return element;
}
-void
+static void
cleanup_rgvolume (GstElement * element)
{
GST_DEBUG ("cleanup_rgvolume");
@@ -535,7 +535,7 @@ GST_START_TEST (test_reference_level)
GST_END_TEST;
-Suite *
+static Suite *
rgvolume_suite (void)
{
Suite *s = suite_create ("rgvolume");
diff --git a/tests/check/elements/shapewipe.c b/tests/check/elements/shapewipe.c
index 9458b814a..d38f9ea05 100644
--- a/tests/check/elements/shapewipe.c
+++ b/tests/check/elements/shapewipe.c
@@ -291,7 +291,7 @@ GST_START_TEST (test_general)
GST_END_TEST;
-Suite *
+static Suite *
shapewipe_suite (void)
{
Suite *s = suite_create ("shapewipe");
diff --git a/tests/check/elements/souphttpsrc.c b/tests/check/elements/souphttpsrc.c
index 85891d761..8ba974bee 100644
--- a/tests/check/elements/souphttpsrc.c
+++ b/tests/check/elements/souphttpsrc.c
@@ -83,7 +83,7 @@ digest_auth_cb (SoupAuthDomain * domain, SoupMessage * msg,
return NULL;
}
-int
+static int
run_test (const char *format, ...)
{
GstStateChangeReturn ret;
diff --git a/tests/check/elements/spectrum.c b/tests/check/elements/spectrum.c
index 98e0074d8..2045c12a5 100644
--- a/tests/check/elements/spectrum.c
+++ b/tests/check/elements/spectrum.c
@@ -99,8 +99,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
);
/* takes over reference for outcaps */
-GstElement *
-setup_spectrum ()
+static GstElement *
+setup_spectrum (void)
{
GstElement *spectrum;
@@ -114,7 +114,7 @@ setup_spectrum ()
return spectrum;
}
-void
+static void
cleanup_spectrum (GstElement * spectrum)
{
GST_DEBUG ("cleanup_spectrum");
@@ -538,7 +538,7 @@ GST_START_TEST (test_float64)
GST_END_TEST;
-Suite *
+static Suite *
spectrum_suite (void)
{
Suite *s = suite_create ("spectrum");
diff --git a/tests/check/elements/videofilter.c b/tests/check/elements/videofilter.c
index 0d236e40e..4e9b6b1ce 100644
--- a/tests/check/elements/videofilter.c
+++ b/tests/check/elements/videofilter.c
@@ -53,7 +53,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
);
/* takes over reference for outcaps */
-GstElement *
+static GstElement *
setup_filter (const gchar * name, const gchar * prop, va_list var_args)
{
GstElement *element;
@@ -69,7 +69,7 @@ setup_filter (const gchar * name, const gchar * prop, va_list var_args)
return element;
}
-void
+static void
cleanup_filter (GstElement * filter)
{
GST_DEBUG ("cleanup_element");
@@ -163,7 +163,7 @@ GST_START_TEST (test_gamma)
GST_END_TEST;
-Suite *
+static Suite *
videobalance_suite ()
{
Suite *s = suite_create ("videobalance");
@@ -175,7 +175,7 @@ videobalance_suite ()
return s;
}
-Suite *
+static Suite *
videoflip_suite ()
{
Suite *s = suite_create ("videoflip");
@@ -187,7 +187,7 @@ videoflip_suite ()
return s;
}
-Suite *
+static Suite *
gamma_suite ()
{
Suite *s = suite_create ("gamma");
diff --git a/tests/check/elements/wavpackdec.c b/tests/check/elements/wavpackdec.c
index 7fac67855..54a764b60 100644
--- a/tests/check/elements/wavpackdec.c
+++ b/tests/check/elements/wavpackdec.c
@@ -66,8 +66,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"channels = (int) 1, " "rate = (int) 44100, " "framed = (boolean) true")
);
-GstElement *
-setup_wavpackdec ()
+static GstElement *
+setup_wavpackdec (dec)
{
GstElement *wavpackdec;
@@ -81,7 +81,7 @@ setup_wavpackdec ()
return wavpackdec;
}
-void
+static void
cleanup_wavpackdec (GstElement * wavpackdec)
{
GST_DEBUG ("cleanup_wavpackdec");
@@ -225,7 +225,7 @@ GST_START_TEST (test_decode_frame_with_incomplete_frame)
GST_END_TEST;
-Suite *
+static Suite *
wavpackdec_suite (void)
{
Suite *s = suite_create ("wavpackdec");
diff --git a/tests/check/elements/wavpackenc.c b/tests/check/elements/wavpackenc.c
index 6a160faa8..153668a9d 100644
--- a/tests/check/elements/wavpackenc.c
+++ b/tests/check/elements/wavpackenc.c
@@ -62,8 +62,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
"rate = (int) 44100, "
"endianness = (int) BYTE_ORDER, " "signed = (boolean) true"));
-GstElement *
-setup_wavpackenc ()
+static GstElement *
+setup_wavpackenc (void)
{
GstElement *wavpackenc;
@@ -82,7 +82,7 @@ setup_wavpackenc ()
return wavpackenc;
}
-void
+static void
cleanup_wavpackenc (GstElement * wavpackenc)
{
GST_DEBUG ("cleanup_wavpackenc");
@@ -162,7 +162,7 @@ GST_START_TEST (test_encode_silence)
GST_END_TEST;
-Suite *
+static Suite *
wavpackenc_suite (void)
{
Suite *s = suite_create ("wavpackenc");
diff --git a/tests/check/elements/wavpackparse.c b/tests/check/elements/wavpackparse.c
index e65605864..508390320 100644
--- a/tests/check/elements/wavpackparse.c
+++ b/tests/check/elements/wavpackparse.c
@@ -85,8 +85,8 @@ wavpackparse_found_pad (GstElement * src, GstPad * pad, gpointer data)
gst_object_unref (srcpad);
}
-void
-setup_wavpackparse ()
+static void
+setup_wavpackparse (void)
{
GstPad *sinkpad;
@@ -115,8 +115,8 @@ setup_wavpackparse ()
"could not set to playing");
}
-void
-cleanup_wavpackparse ()
+static void
+cleanup_wavpackparse (void)
{
GstPad *sinkpad, *srcpad;
@@ -262,7 +262,7 @@ GST_START_TEST (test_parsing_invalid_first_header)
GST_END_TEST;
-Suite *
+static Suite *
wavpackparse_suite (void)
{
Suite *s = suite_create ("wavpackparse");
diff --git a/tests/check/elements/y4menc.c b/tests/check/elements/y4menc.c
index 4fd5d12c8..24a4fed7b 100644
--- a/tests/check/elements/y4menc.c
+++ b/tests/check/elements/y4menc.c
@@ -49,8 +49,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS (VIDEO_CAPS_STRING));
-GstElement *
-setup_y4menc ()
+static GstElement *
+setup_y4menc (void)
{
GstElement *y4menc;
@@ -64,7 +64,7 @@ setup_y4menc ()
return y4menc;
}
-void
+static void
cleanup_y4menc (GstElement * y4menc)
{
GST_DEBUG ("cleanup_y4menc");
@@ -134,7 +134,7 @@ GST_START_TEST (test_y4m)
GST_END_TEST;
-Suite *
+static Suite *
y4menc_suite (void)
{
Suite *s = suite_create ("y4menc");
diff --git a/tests/check/generic/states.c b/tests/check/generic/states.c
index a4a226f3c..68f807aba 100644
--- a/tests/check/generic/states.c
+++ b/tests/check/generic/states.c
@@ -204,7 +204,7 @@ GST_START_TEST (test_state_changes_down_seq)
GST_END_TEST;
-Suite *
+static Suite *
states_suite (void)
{
Suite *s = suite_create ("states");
diff --git a/tests/check/pipelines/simple-launch-lines.c b/tests/check/pipelines/simple-launch-lines.c
index 5b27aefb0..d4eaee9d7 100644
--- a/tests/check/pipelines/simple-launch-lines.c
+++ b/tests/check/pipelines/simple-launch-lines.c
@@ -249,7 +249,8 @@ GST_START_TEST (test_video_encoders_decoders)
GST_END_TEST
#endif /* #ifndef GST_DISABLE_PARSE */
- Suite * simple_launch_lines_suite (void)
+static Suite *
+simple_launch_lines_suite (void)
{
Suite *s = suite_create ("Pipelines");
TCase *tc_chain = tcase_create ("linear");
diff --git a/tests/check/pipelines/wavpack.c b/tests/check/pipelines/wavpack.c
index f9599fe1b..452945b39 100644
--- a/tests/check/pipelines/wavpack.c
+++ b/tests/check/pipelines/wavpack.c
@@ -188,7 +188,7 @@ GST_START_TEST (test_encode_decode)
GST_END_TEST;
-Suite *
+static Suite *
wavpack_suite (void)
{
Suite *s = suite_create ("Wavpack");
diff --git a/tests/examples/equalizer/demo.c b/tests/examples/equalizer/demo.c
index 1247bc64e..f5b1ec58b 100644
--- a/tests/examples/equalizer/demo.c
+++ b/tests/examples/equalizer/demo.c
@@ -94,7 +94,7 @@ draw_spectrum (gfloat * data)
}
/* receive spectral data from element message */
-gboolean
+static gboolean
message_handler (GstBus * bus, GstMessage * message, gpointer data)
{
if (message->type == GST_MESSAGE_ELEMENT) {
diff --git a/tests/examples/level/level-example.c b/tests/examples/level/level-example.c
index 9bce5b4fc..ece364714 100644
--- a/tests/examples/level/level-example.c
+++ b/tests/examples/level/level-example.c
@@ -23,7 +23,7 @@
#include <gst/gst.h>
-gboolean
+static gboolean
message_handler (GstBus * bus, GstMessage * message, gpointer data)
{
diff --git a/tests/examples/spectrum/spectrum-example.c b/tests/examples/spectrum/spectrum-example.c
index 6c4c6c8e8..b5529218a 100644
--- a/tests/examples/spectrum/spectrum-example.c
+++ b/tests/examples/spectrum/spectrum-example.c
@@ -28,7 +28,7 @@ static guint spect_bands = 20;
#define AUDIOFREQ 32000
/* receive spectral data from element message */
-gboolean
+static gboolean
message_handler (GstBus * bus, GstMessage * message, gpointer data)
{
if (message->type == GST_MESSAGE_ELEMENT) {
diff --git a/tests/icles/v4l2src-test.c b/tests/icles/v4l2src-test.c
index af0ca8e4c..edbfd9388 100644
--- a/tests/icles/v4l2src-test.c
+++ b/tests/icles/v4l2src-test.c
@@ -32,7 +32,7 @@ GstElement *pipeline, *source, *sink;
GMainLoop *loop;
volatile int exit_read = 0;
-void
+static void
print_options ()
{
printf ("\nf - to change the fequency\n");
@@ -43,7 +43,7 @@ print_options ()
printf ("e - to exit\n");
}
-void
+static void
run_options (char opt)
{
int res;
@@ -289,7 +289,7 @@ done:
}
-gpointer
+static gpointer
read_user (gpointer data)
{