From 3342b1679e3f08976a76726ef05ac1dee08cbe3a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 17 Mar 2010 18:23:00 +0100 Subject: [PATCH] Add -Wmissing-declarations -Wmissing-prototypes warning flags And fix all the warnings. --- configure.ac | 4 +-- ext/annodex/gstannodex.c | 1 + ext/annodex/gstcmmldec.h | 2 ++ ext/annodex/gstcmmlenc.h | 2 ++ ext/annodex/gstcmmlparser.c | 2 +- ext/annodex/gstcmmlutils.c | 24 --------------- ext/dv/gstdvdec.c | 2 +- ext/flac/gstflacenc.c | 2 +- ext/gdk_pixbuf/gstgdkpixbuf.c | 3 +- ext/gdk_pixbuf/pixbufscale.h | 4 ++- ext/jpeg/Makefile.am | 1 + ext/jpeg/gstjpeg.c | 1 + ext/jpeg/gstjpeg.h | 34 ++++++++++++++++++++++ ext/jpeg/gstjpegdec.c | 1 + ext/jpeg/gstjpegenc.c | 1 + ext/wavpack/gstwavpackstreamreader.c | 2 +- ext/wavpack/gstwavpackstreamreader.h | 2 +- gst/debugutils/breakmydata.c | 1 + gst/debugutils/gstnavseek.c | 1 + gst/debugutils/rndbuffersize.c | 1 + gst/debugutils/testplugin.c | 1 + gst/deinterlace/tvtime/greedyh.asm | 2 +- gst/deinterlace/tvtime/greedyh.c | 2 +- gst/deinterlace/tvtime/mmx.h | 4 +-- .../tvtime/tomsmocomp/TomsMoCompAll.inc | 2 +- gst/goom/goom_fx.h | 2 +- gst/goom2k1/filters.c | 4 +-- gst/goom2k1/filters.h | 2 +- gst/law/mulaw-conversion.c | 2 ++ gst/matroska/matroska-demux.c | 1 + gst/matroska/matroska-mux.c | 3 +- gst/multipart/multipart.c | 4 +-- gst/multipart/multipartdemux.c | 2 +- gst/multipart/multipartdemux.h | 4 +++ gst/multipart/multipartmux.c | 16 +++++----- gst/multipart/multipartmux.h | 6 +++- gst/qtdemux/gstrtpxqtdepay.c | 7 ----- gst/rtp/fnv1hash.c | 2 ++ gst/rtp/fnv1hash.h | 2 +- gst/rtp/gstasteriskh263.h | 2 ++ gst/rtp/gstrtpL16depay.h | 2 ++ gst/rtp/gstrtpL16pay.h | 2 ++ gst/rtp/gstrtpac3depay.h | 2 ++ gst/rtp/gstrtpamrdepay.h | 2 ++ gst/rtp/gstrtpamrpay.h | 2 ++ gst/rtp/gstrtpbvdepay.h | 2 ++ gst/rtp/gstrtpbvpay.c | 32 ++++++++++---------- gst/rtp/gstrtpbvpay.h | 4 ++- gst/rtp/gstrtpceltdepay.h | 2 ++ gst/rtp/gstrtpceltpay.h | 2 ++ gst/rtp/gstrtpdvdepay.h | 1 + gst/rtp/gstrtpdvpay.h | 2 ++ gst/rtp/gstrtpg723depay.h | 2 ++ gst/rtp/gstrtpg723pay.h | 4 +-- gst/rtp/gstrtpg726depay.h | 2 ++ gst/rtp/gstrtpg726pay.h | 2 ++ gst/rtp/gstrtpg729depay.h | 2 ++ gst/rtp/gstrtpg729pay.h | 2 ++ gst/rtp/gstrtpgsmdepay.h | 2 ++ gst/rtp/gstrtpgsmpay.h | 2 ++ gst/rtp/gstrtph263depay.h | 2 ++ gst/rtp/gstrtph263pay.h | 2 ++ gst/rtp/gstrtph263pdepay.h | 2 ++ gst/rtp/gstrtph263ppay.h | 2 ++ gst/rtp/gstrtph264depay.h | 2 ++ gst/rtp/gstrtph264pay.h | 2 ++ gst/rtp/gstrtpilbcdepay.h | 2 ++ gst/rtp/gstrtpilbcpay.c | 33 +++++++++++---------- gst/rtp/gstrtpilbcpay.h | 4 ++- gst/rtp/gstrtpj2kdepay.h | 2 ++ gst/rtp/gstrtpj2kpay.h | 2 ++ gst/rtp/gstrtpjpegdepay.h | 2 ++ gst/rtp/gstrtpjpegpay.h | 2 ++ gst/rtp/gstrtpmp1sdepay.h | 2 ++ gst/rtp/gstrtpmp2tdepay.h | 2 ++ gst/rtp/gstrtpmp2tpay.h | 2 ++ gst/rtp/gstrtpmp4adepay.h | 2 ++ gst/rtp/gstrtpmp4apay.h | 2 ++ gst/rtp/gstrtpmp4gdepay.h | 2 ++ gst/rtp/gstrtpmp4gpay.h | 2 ++ gst/rtp/gstrtpmp4vdepay.h | 2 ++ gst/rtp/gstrtpmp4vpay.h | 2 ++ gst/rtp/gstrtpmpadepay.h | 2 ++ gst/rtp/gstrtpmpapay.h | 2 ++ gst/rtp/gstrtpmpvdepay.h | 2 ++ gst/rtp/gstrtpmpvpay.h | 2 ++ gst/rtp/gstrtppcmadepay.h | 2 ++ gst/rtp/gstrtppcmapay.h | 2 ++ gst/rtp/gstrtppcmudepay.h | 2 ++ gst/rtp/gstrtppcmupay.h | 2 ++ gst/rtp/gstrtpqdmdepay.h | 2 ++ gst/rtp/gstrtpsirendepay.h | 2 ++ gst/rtp/gstrtpsirenpay.c | 27 ++++++++--------- gst/rtp/gstrtpsirenpay.h | 4 ++- gst/rtp/gstrtpspeexdepay.h | 2 ++ gst/rtp/gstrtpspeexpay.h | 2 ++ gst/rtp/gstrtpsv3vdepay.h | 2 ++ gst/rtp/gstrtptheoradepay.h | 2 ++ gst/rtp/gstrtptheorapay.h | 2 ++ gst/rtp/gstrtpvorbisdepay.h | 2 ++ gst/rtp/gstrtpvorbispay.h | 2 ++ gst/rtp/gstrtpvrawdepay.h | 2 ++ gst/rtp/gstrtpvrawpay.h | 2 ++ gst/rtsp/gstrtpdec.c | 4 +-- gst/rtsp/gstrtspsrc.c | 4 +-- gst/smpte/gstmask.c | 2 -- gst/smpte/gstmask.h | 2 ++ gst/videobox/gstvideobox.h | 2 ++ gst/videocrop/gstvideocrop.h | 2 ++ gst/videofilter/gstgamma.c | 2 +- gst/videofilter/gstvideobalance.c | 2 +- gst/videomixer/videomixer.c | 1 + gst/videomixer/videomixer.h | 2 ++ gst/wavenc/gstwavenc.h | 2 ++ sys/v4l2/gstv4l2colorbalance.h | 2 +- sys/v4l2/gstv4l2object.c | 2 +- sys/v4l2/gstv4l2sink.c | 2 +- sys/v4l2/gstv4l2src.c | 2 +- sys/v4l2/gstv4l2tuner.h | 2 +- sys/v4l2/gstv4l2vidorient.h | 2 +- sys/ximage/ximageutil.c | 6 ++-- tests/check/elements/aspectratiocrop.c | 4 +-- tests/check/elements/audioamplify.c | 8 ++--- tests/check/elements/audiochebband.c | 8 ++--- tests/check/elements/audiocheblimit.c | 8 ++--- tests/check/elements/audiodynamic.c | 8 ++--- tests/check/elements/audioecho.c | 6 ++-- tests/check/elements/audioinvert.c | 8 ++--- tests/check/elements/audiopanorama.c | 12 ++++---- tests/check/elements/audiowsincband.c | 8 ++--- tests/check/elements/audiowsinclimit.c | 8 ++--- tests/check/elements/avimux.c | 12 ++++---- tests/check/elements/avisubtitle.c | 12 ++++---- tests/check/elements/cmmldec.c | 2 +- tests/check/elements/equalizer.c | 8 ++--- tests/check/elements/level.c | 8 ++--- tests/check/elements/matroskamux.c | 16 +++++----- tests/check/elements/multifile.c | 2 +- tests/check/elements/rganalysis.c | 8 ++--- tests/check/elements/rglimiter.c | 9 +++--- tests/check/elements/rgvolume.c | 8 ++--- tests/check/elements/shapewipe.c | 2 +- tests/check/elements/souphttpsrc.c | 2 +- tests/check/elements/spectrum.c | 8 ++--- tests/check/elements/videofilter.c | 10 +++---- tests/check/elements/wavpackdec.c | 8 ++--- tests/check/elements/wavpackenc.c | 8 ++--- tests/check/elements/wavpackparse.c | 10 +++---- tests/check/elements/y4menc.c | 8 ++--- tests/check/generic/states.c | 2 +- tests/check/pipelines/simple-launch-lines.c | 3 +- tests/check/pipelines/wavpack.c | 2 +- tests/examples/equalizer/demo.c | 2 +- tests/examples/level/level-example.c | 2 +- tests/examples/spectrum/spectrum-example.c | 2 +- tests/icles/v4l2src-test.c | 6 ++-- 156 files changed, 412 insertions(+), 249 deletions(-) create mode 100644 ext/jpeg/gstjpeg.h diff --git a/configure.ac b/configure.ac index c9f011d..d502da8 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 22fe798..05e10c8 100644 --- a/ext/annodex/gstannodex.c +++ b/ext/annodex/gstannodex.c @@ -27,6 +27,7 @@ #include #include +#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 4999d41..27a6c55 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 1c03742..4f28e4c 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 221f9f9..0e2f7cd 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 c8b8021..6ec6829 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 307b76e..725dc1f 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 c7d719a..b39dbd9 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 65605ff..64ea99a 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 686bf4d..3e40477 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 c8890c8..54176ba 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 3cdcda1..b9d6e04 100644 --- a/ext/jpeg/gstjpeg.c +++ b/ext/jpeg/gstjpeg.c @@ -24,6 +24,7 @@ #include +#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 0000000..e301793 --- /dev/null +++ b/ext/jpeg/gstjpeg.h @@ -0,0 +1,34 @@ +/* GStreamer + * Copyright (C) <1999> Erik Walthinsen + * + * 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 + +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 f90911c..2258b1f 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -38,6 +38,7 @@ #include #include "gstjpegdec.h" +#include "gstjpeg.h" #include #include "gst/gst-i18n-plugin.h" #include diff --git a/ext/jpeg/gstjpegenc.c b/ext/jpeg/gstjpegenc.c index 01f1665..534e2a0 100644 --- a/ext/jpeg/gstjpegenc.c +++ b/ext/jpeg/gstjpegenc.c @@ -36,6 +36,7 @@ #include #include "gstjpegenc.h" +#include "gstjpeg.h" #include /* experimental */ diff --git a/ext/wavpack/gstwavpackstreamreader.c b/ext/wavpack/gstwavpackstreamreader.c index 6fda41c..074a2e7 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 e9ffd70..713b4c1 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 63e30b6..0345379 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 c47bf42..ee74226 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 7a8abd6..853642b 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 dbb1e61..f814e46 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 86e97c5..40aa003 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 860e8f3..e443324 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 7e33cf5..b0e582b 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 e8883dd..358a9bd 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 9da1109..9f6c6b1 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 b898e89..1b1ea13 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 65eb3e2..8c6f62e 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 23e53a1..8afae80 100644 --- a/gst/law/mulaw-conversion.c +++ b/gst/law/mulaw-conversion.c @@ -25,6 +25,8 @@ #include +#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 85ce5fe..2c30bb9 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 87d246a..360794b 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 c159823..12bab4c 100644 --- a/gst/multipart/multipart.c +++ b/gst/multipart/multipart.c @@ -23,8 +23,8 @@ #include -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 1401c6a..707c262 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 930f49f..36f935d 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 0f71b46..a71872e 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 2e52a2f..a52db36 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 766cf96..a300dbb 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 84fac9a..a7926e4 100644 --- a/gst/rtp/fnv1hash.c +++ b/gst/rtp/fnv1hash.c @@ -23,6 +23,8 @@ #include +#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 ea3c6b6..398323d 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 0edc996..8451e7e 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 9d523d8..a260d45 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 8c30cee..d2755db 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 128ccbd..f0929e5 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 b6e7bf0..92f001a 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 d26d786..ce86d0d 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 c2d2130..9cb9505 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 1d41f64..3242cbe 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 ed7f298..58a6108 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 89c5fff..cfdc220 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 223ad66..9213bf8 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 08544f5..ea7618a 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 5aaf971..e691b80 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 b07ad67..fcab761 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 f8d3ea1..db1570f 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 992644e..064a4fa 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 1d9856b..ce3dbdc 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 c26d320..f02db5c 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 ce0e1d6..e77b5ff 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 53b1524..221f4b3 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 cf50000..4172402 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 169196b..e161477 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 37241f9..33071eb 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 8493e63..0e7c351 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 02f377f..b01fb84 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 c9d9f09..e1fda3f 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 823756f..96eea2c 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 a9b30bd..ce8c38d 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 5c0f56b..004a82c 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 51353f5..8071362 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 c1c8a17..41120af 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 492aa1b..601e7cb 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 28581f1..591a8cb 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 19fe378..5d003c4 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 d0296de..42915a7 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 e8c7586..010b5ca 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 8378972..e7a679b 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 36ed714..16c20b7 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 591e743..0447d83 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 9d534a5..2d19413 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 cd4e0d6..491437b 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 a0d8c1d..043ea8b 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 df43441..9e5b486 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 163ea73..a6e9527 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 d0696a2..cdab196 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 167f161..ca366d5 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 617de40..d16162e 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 61d14d9..1240314 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 f5cf800..7a39d7d 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 b7f8bf7..72a37d1 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 411ad8f..f43ec3b 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 d678d1a..e3ae3dc 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 78de4a7..cbb18cb 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 b63244a..cb7be70 100644 --- a/gst/rtp/gstrtpsirenpay.c +++ b/gst/rtp/gstrtpsirenpay.c @@ -27,7 +27,7 @@ #include /* 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 71eb839..cb6625e 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 4a76a63..07b727f 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 b50f750..f43986a 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 cbe5d13..7c55afd 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 9c2fcde..0d1a911 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 5b86324..d3db359 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 edb85b8..0b06118 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 387d7dd..9c86b5b 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 cc2eca2..77cb6bf 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 836198b..44a7ee1 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 0382766..e7aab03 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 2c68756..df68614 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 dfb856c..9c0ba92 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 f9cf6a9..7e29246 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 61b2914..9072a6b 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 9911c7c..477f21b 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 12ceb13..a456881 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 c915212..31578fc 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 4ce38bf..bb72a59 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 3d5854b..7527379 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 f4f9aac..3fe167e 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 d1cd621..9e183f0 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 04d2ad0..7d9409e 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 d2d5cb3..26773be 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 7dd7737..81346d7 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 5ec2b67..bf9ff94 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 965fc05..39682e2 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 e0d2c32..0ef4b06 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 4f80552..5d42bfb 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 a17649a..48ce8ff 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 13ffa5f..73a8b15 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 70645b9..3b46504 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 75ecc36..1119779 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 c5d179f..fa88c3f 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 4150a84..39ff80e 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 e8d7c92..07abca7 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 fc4805d..137f425 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 3a6280d..a5f0291 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 28bcb8d..922221d 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 52f8586..06598ac 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 5047ff5..dff3d20 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 44270d0..29b2e38 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 e37c022..838b872 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 5eb924f..efb0fb6b 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 ef93555..6fe527e 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 143feec..89ff92e 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 ea0bd75..54747d8 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 7159bb7..28d4134 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 9458b81..d38f9ea 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 85891d7..8ba974b 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 98e0074..2045c12 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 0d236e4..4e9b6b1 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 7fac678..54a764b 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 6a160fa..153668a 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 e656058..5083903 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 4fd5d12..24a4fed 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 a4a226f..68f807a 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 5b27aef..d4eaee9 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 f9599fe..452945b 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 1247bc6..f5b1ec5 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 9bce5b4..ece3647 100644 --- a/tests/examples/level/level-example.c +++ b/tests/examples/level/level-example.c @@ -23,7 +23,7 @@ #include -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 6c4c6c8..b552921 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 af0ca8e..edbfd93 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) { -- 2.7.4