diff options
author | Benjamin Otte <otte@redhat.com> | 2010-03-21 21:39:18 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-03-21 21:39:18 +0100 |
commit | f96e4f15817974e8d3675bfe3980cdf02815bd74 (patch) | |
tree | 8eb2ba9bc6058e9a8d5ad2a46e6bd5034e3f3813 /gst | |
parent | 46f4c7a6c127dbd20fd9f88a10518e084501cd36 (diff) | |
download | gstreamer-plugins-bad-f96e4f15817974e8d3675bfe3980cdf02815bd74.tar.gz |
Add -Wmissing-declarations -Wmissing-prototypes to configure flags
And fix all warnings
Diffstat (limited to 'gst')
47 files changed, 80 insertions, 94 deletions
diff --git a/gst/adpcmdec/adpcmdec.c b/gst/adpcmdec/adpcmdec.c index 34e4f3ae9..d8a8dec74 100644 --- a/gst/adpcmdec/adpcmdec.c +++ b/gst/adpcmdec/adpcmdec.c @@ -97,6 +97,7 @@ typedef struct _ADPCMDec } ADPCMDec; +GType adpcmdec_get_type (void); GST_BOILERPLATE (ADPCMDec, adpcmdec, GstElement, GST_TYPE_ELEMENT); static gboolean adpcmdec_setup (ADPCMDec * dec) diff --git a/gst/adpcmenc/adpcmenc.c b/gst/adpcmenc/adpcmenc.c index 89b83341b..0a9d0e96f 100644 --- a/gst/adpcmenc/adpcmenc.c +++ b/gst/adpcmenc/adpcmenc.c @@ -144,6 +144,7 @@ typedef struct _ADPCMEnc } ADPCMEnc; +GType adpcmenc_get_type (void); GST_BOILERPLATE (ADPCMEnc, adpcmenc, GstElement, GST_TYPE_ELEMENT); static gboolean adpcmenc_setup (ADPCMEnc * enc) diff --git a/gst/aiff/aiffmux.c b/gst/aiff/aiffmux.c index d3477a84a..2bfbbc8d8 100644 --- a/gst/aiff/aiffmux.c +++ b/gst/aiff/aiffmux.c @@ -183,7 +183,7 @@ typedef struct AVExtFloat guint8 mantissa[8]; } AVExtFloat; -AVExtFloat +static AVExtFloat av_dbl2ext (double d) { struct AVExtFloat ext = { {0} }; diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c index 0a6ad571b..a73d4e701 100644 --- a/gst/asfmux/gstasfmux.c +++ b/gst/asfmux/gstasfmux.c @@ -1220,7 +1220,7 @@ gst_asf_mux_write_data_object (GstAsfMux * asfmux, guint8 ** buf) *buf += ASF_DATA_OBJECT_SIZE; } -guint +static guint gst_asf_mux_find_payload_parsing_info_size (GstAsfMux * asfmux) { /* Minimum payload parsing information size is 8 bytes */ diff --git a/gst/autoconvert/gstautoconvert.c b/gst/autoconvert/gstautoconvert.c index 4fb0a416e..9583779e3 100644 --- a/gst/autoconvert/gstautoconvert.c +++ b/gst/autoconvert/gstautoconvert.c @@ -1551,7 +1551,7 @@ gst_auto_convert_internal_src_query_type (GstPad * pad) return ret; } -gboolean +static gboolean gst_auto_convert_plugin_init (GstPlugin * plugin) { return gst_element_register (plugin, "autoconvert", diff --git a/gst/autoconvert/gstautoconvert.h b/gst/autoconvert/gstautoconvert.h index 43752551d..612bcb18d 100644 --- a/gst/autoconvert/gstautoconvert.h +++ b/gst/autoconvert/gstautoconvert.h @@ -65,5 +65,7 @@ struct _GstAutoConvertClass GstBinClass parent_class; }; +GType gst_auto_convert_get_type (void); + G_END_DECLS #endif /* __GST_AUTO_CONVERT_H__ */ diff --git a/gst/bayer/gstbayer2rgb.c b/gst/bayer/gstbayer2rgb.c index 153846503..ac88202c5 100644 --- a/gst/bayer/gstbayer2rgb.c +++ b/gst/bayer/gstbayer2rgb.c @@ -138,6 +138,7 @@ enum #define DEBUG_INIT(bla) \ GST_DEBUG_CATEGORY_INIT (gst_bayer2rgb_debug, "bayer2rgb", 0, "bayer2rgb element"); +GType gst_bayer2rgb_get_type (void); GST_BOILERPLATE_FULL (GstBayer2RGB, gst_bayer2rgb, GstBaseTransform, GST_TYPE_BASE_TRANSFORM, DEBUG_INIT); diff --git a/gst/dccp/gstdccp.c b/gst/dccp/gstdccp.c index 148aa4ad1..3d44731ce 100644 --- a/gst/dccp/gstdccp.c +++ b/gst/dccp/gstdccp.c @@ -516,12 +516,13 @@ gst_dccp_set_ccid (GstElement * element, int sock_fd, uint8_t ccid) return TRUE; } +#if 0 /* * Get the current ccid of TX or RX half-connection. tx_or_rx parameter must be * DCCP_SOCKOPT_TX_CCID or DCCP_SOCKOPT_RX_CCID. * @return ccid or -1 on error or tx_or_rx not the correct option */ -uint8_t +static uint8_t gst_dccp_get_ccid (GstElement * element, int sock_fd, int tx_or_rx) { uint8_t ccid; @@ -548,6 +549,7 @@ gst_dccp_get_ccid (GstElement * element, int sock_fd, int tx_or_rx) } return ccid; } +#endif /* * Get the socket MTU. diff --git a/gst/dtmf/gstrtpdtmfdepay.h b/gst/dtmf/gstrtpdtmfdepay.h index dfbcc4af0..172cb8414 100644 --- a/gst/dtmf/gstrtpdtmfdepay.h +++ b/gst/dtmf/gstrtpdtmfdepay.h @@ -60,6 +60,8 @@ struct _GstRtpDTMFDepayClass GstBaseRTPDepayloadClass parent_class; }; +GType gst_rtp_dtmf_depay_get_type (void); + gboolean gst_rtp_dtmf_depay_plugin_init (GstPlugin * plugin); G_END_DECLS diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c index e4ded0535..6ef032845 100644 --- a/gst/dvdspu/gstdvdspu.c +++ b/gst/dvdspu/gstdvdspu.c @@ -1169,7 +1169,7 @@ gst_dvd_spu_change_state (GstElement * element, GstStateChange transition) return ret; } -gboolean +static gboolean gst_dvd_spu_plugin_init (GstPlugin * plugin) { GST_DEBUG_CATEGORY_INIT (dvdspu_debug, "gstspu", diff --git a/gst/invtelecine/gstinvtelecine.c b/gst/invtelecine/gstinvtelecine.c index 753957f10..98b59aa45 100644 --- a/gst/invtelecine/gstinvtelecine.c +++ b/gst/invtelecine/gstinvtelecine.c @@ -116,7 +116,7 @@ static GstFlowReturn gst_invtelecine_output_fields (GstInvtelecine * invtelecine, int num_fields); -GType +static GType gst_invtelecine_get_type (void) { static GType invtelecine_type = 0; diff --git a/gst/legacyresample/resample.c b/gst/legacyresample/resample.c index c464adf81..f8f229fd5 100644 --- a/gst/legacyresample/resample.c +++ b/gst/legacyresample/resample.c @@ -33,9 +33,6 @@ #include "buffer.h" #include "debug.h" -void resample_scale_ref (ResampleState * r); -void resample_scale_functable (ResampleState * r); - GST_DEBUG_CATEGORY (libaudioresample_debug); void diff --git a/gst/legacyresample/resample.h b/gst/legacyresample/resample.h index 84bf8f09a..ba14983b6 100644 --- a/gst/legacyresample/resample.h +++ b/gst/legacyresample/resample.h @@ -124,5 +124,8 @@ void resample_set_format (ResampleState *r, ResampleFormat format); void resample_set_method (ResampleState *r, int method); int resample_format_size (ResampleFormat format); +void resample_scale_ref (ResampleState * r); +void resample_scale_functable (ResampleState * r); + #endif /* __RESAMPLE_H__ */ diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c index 28ca5c9e5..36e47aa41 100644 --- a/gst/librfb/rfbdecoder.c +++ b/gst/librfb/rfbdecoder.c @@ -155,7 +155,7 @@ rfb_decoder_iterate (RfbDecoder * decoder) return decoder->state (decoder); } -guint8 * +static guint8 * rfb_decoder_read (RfbDecoder * decoder, guint32 len) { guint32 total = 0; diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c index 0b4f242e0..d62fbd00f 100644 --- a/gst/mpegdemux/gstmpegdemux.c +++ b/gst/mpegdemux/gstmpegdemux.c @@ -77,25 +77,6 @@ typedef enum GST_DEBUG_CATEGORY_STATIC (gstflupsdemux_debug); #define GST_CAT_DEFAULT (gstflupsdemux_debug) -#define GST_TYPE_FLUPS_DEMUX_SYNC (gst_flups_demux_sync_get_type ()) -GType -gst_flups_demux_sync_get_type (void) -{ - static GType sync_type = 0; - static GEnumValue sync_types[] = { - {GST_FLUPS_DEMUX_SYNC_AUTO, "Auto-select method to synchronize streams", - "auto"}, - {GST_FLUPS_DEMUX_SYNC_SCR, "Use SCR to synchronize streams", "scr"}, - {GST_FLUPS_DEMUX_SYNC_DTS, "Use DTS to synchronize streams", "dts"}, - {0, NULL, NULL} - }; - - if (sync_type == 0) - sync_type = g_enum_register_static ("GstPSDemuxSync", sync_types); - - return sync_type; -} - /* MPEG2Demux signals and args */ enum { diff --git a/gst/mpegdemux/gstmpegdesc.h b/gst/mpegdemux/gstmpegdesc.h index 09a9a7c6c..9e1ae75c8 100644 --- a/gst/mpegdemux/gstmpegdesc.h +++ b/gst/mpegdemux/gstmpegdesc.h @@ -329,7 +329,7 @@ typedef struct { guint8 *data; } GstMPEGDescriptor; -void gst_mpegtsdesc_init_debug (); +void gst_mpegtsdesc_init_debug (void); GstMPEGDescriptor* gst_mpeg_descriptor_parse (guint8 *data, guint size); void gst_mpeg_descriptor_free (GstMPEGDescriptor *desc); diff --git a/gst/mpegdemux/mpegtspacketizer.c b/gst/mpegdemux/mpegtspacketizer.c index 357609084..642e130f3 100644 --- a/gst/mpegdemux/mpegtspacketizer.c +++ b/gst/mpegdemux/mpegtspacketizer.c @@ -1967,7 +1967,7 @@ mpegts_packetizer_remove_stream (MpegTSPacketizer * packetizer, gint16 pid) } MpegTSPacketizer * -mpegts_packetizer_new () +mpegts_packetizer_new (void) { MpegTSPacketizer *packetizer; @@ -1983,7 +1983,7 @@ mpegts_packetizer_push (MpegTSPacketizer * packetizer, GstBuffer * buffer) gst_adapter_push (packetizer->adapter, buffer); } -void +static void mpegts_try_discover_packet_size (MpegTSPacketizer * packetizer) { guint8 *dest; diff --git a/gst/mpegdemux/mpegtspacketizer.h b/gst/mpegdemux/mpegtspacketizer.h index 1f82848ae..6a06906a7 100644 --- a/gst/mpegdemux/mpegtspacketizer.h +++ b/gst/mpegdemux/mpegtspacketizer.h @@ -121,9 +121,9 @@ typedef enum { PACKET_NEED_MORE } MpegTSPacketizerPacketReturn; -GType gst_mpegts_packetizer_get_type(void); +GType mpegts_packetizer_get_type(void); -MpegTSPacketizer *mpegts_packetizer_new (); +MpegTSPacketizer *mpegts_packetizer_new (void); void mpegts_packetizer_clear (MpegTSPacketizer *packetizer); void mpegts_packetizer_push (MpegTSPacketizer *packetizer, GstBuffer *buffer); gboolean mpegts_packetizer_has_packets (MpegTSPacketizer *packetizer); diff --git a/gst/mpegdemux/mpegtsparse.h b/gst/mpegdemux/mpegtsparse.h index 36466b817..149a9171e 100644 --- a/gst/mpegdemux/mpegtsparse.h +++ b/gst/mpegdemux/mpegtsparse.h @@ -76,7 +76,7 @@ struct _MpegTSParseClass { void (*eit_info) (GstStructure *eit); }; -GType gst_mpegts_parse_get_type(void); +GType mpegts_parse_get_type(void); gboolean gst_mpegtsparse_plugin_init (GstPlugin * plugin); diff --git a/gst/mpegvideoparse/mpegpacketiser.c b/gst/mpegvideoparse/mpegpacketiser.c index 90c13c684..b22b51f68 100644 --- a/gst/mpegvideoparse/mpegpacketiser.c +++ b/gst/mpegvideoparse/mpegpacketiser.c @@ -118,7 +118,7 @@ mpeg_util_find_start_code (guint32 * sync_word, guint8 * cur, guint8 * end) /* Get the index of the next unfilled block in the buffer. May need to grow * the array first */ -gint +static gint get_next_free_block (MPEGPacketiser * p) { gint next; diff --git a/gst/mpegvideoparse/mpegvideoparse.h b/gst/mpegvideoparse/mpegvideoparse.h index 8c3854b9c..b514863ff 100644 --- a/gst/mpegvideoparse/mpegvideoparse.h +++ b/gst/mpegvideoparse/mpegvideoparse.h @@ -65,7 +65,7 @@ struct _MpegVideoParseClass { GstElementClass parent_class; }; -GType gst_mpegvideoparse_get_type(void); +GType mpegvideoparse_get_type(void); G_END_DECLS diff --git a/gst/mve/gstmvedemux.c b/gst/mve/gstmvedemux.c index 816dc543b..90f18fd0b 100644 --- a/gst/mve/gstmvedemux.c +++ b/gst/mve/gstmvedemux.c @@ -32,14 +32,6 @@ GST_DEBUG_CATEGORY_STATIC (mvedemux_debug); #define GST_CAT_DEFAULT mvedemux_debug -extern int ipvideo_decode_frame8 (const GstMveDemuxStream * s, - const unsigned char *data, unsigned short len); -extern int ipvideo_decode_frame16 (const GstMveDemuxStream * s, - const unsigned char *data, unsigned short len); - -extern void ipaudio_uncompress (short *buffer, - unsigned short buf_len, const unsigned char *data, unsigned char channels); - enum MveDemuxState { MVEDEMUX_STATE_INITIAL, /* initial state, header not read */ diff --git a/gst/mve/gstmvedemux.h b/gst/mve/gstmvedemux.h index 533d02309..502a50fea 100644 --- a/gst/mve/gstmvedemux.h +++ b/gst/mve/gstmvedemux.h @@ -99,6 +99,14 @@ struct _GstMveDemuxStream { GType gst_mve_demux_get_type (void); +int ipvideo_decode_frame8 (const GstMveDemuxStream * s, + const unsigned char *data, unsigned short len); +int ipvideo_decode_frame16 (const GstMveDemuxStream * s, + const unsigned char *data, unsigned short len); + +void ipaudio_uncompress (short *buffer, + unsigned short buf_len, const unsigned char *data, unsigned char channels); + G_END_DECLS #endif /* __GST_MVE_DEMUX_H__ */ diff --git a/gst/mve/gstmvemux.c b/gst/mve/gstmvemux.c index e54c4a153..822a23f69 100644 --- a/gst/mve/gstmvemux.c +++ b/gst/mve/gstmvemux.c @@ -37,13 +37,6 @@ gst-launch-0.10 filesrc location=movie.mve ! mvedemux name=d ! GST_DEBUG_CATEGORY_STATIC (mvemux_debug); #define GST_CAT_DEFAULT mvemux_debug -extern GstFlowReturn mve_encode_frame8 (GstMveMux * mve, - GstBuffer * frame, const guint32 * palette, guint16 max_data); -extern GstFlowReturn mve_encode_frame16 (GstMveMux * mve, - GstBuffer * frame, guint16 max_data); -extern gint mve_compress_audio (guint8 * dest, - const guint8 * src, guint16 len, guint8 channels); - static const char mve_preamble[] = MVE_PREAMBLE; enum diff --git a/gst/mve/gstmvemux.h b/gst/mve/gstmvemux.h index 319b2ae45..48737589d 100644 --- a/gst/mve/gstmvemux.h +++ b/gst/mve/gstmvemux.h @@ -115,6 +115,13 @@ struct _GstMveMuxClass { GType gst_mve_mux_get_type (void); +GstFlowReturn mve_encode_frame8 (GstMveMux * mve, + GstBuffer * frame, const guint32 * palette, guint16 max_data); +GstFlowReturn mve_encode_frame16 (GstMveMux * mve, + GstBuffer * frame, guint16 max_data); +gint mve_compress_audio (guint8 * dest, + const guint8 * src, guint16 len, guint8 channels); + G_END_DECLS #endif /* __GST_MVE_MUX_H__ */ diff --git a/gst/mve/mveaudiodec.c b/gst/mve/mveaudiodec.c index 0e9ee4e25..51d47b17e 100644 --- a/gst/mve/mveaudiodec.c +++ b/gst/mve/mveaudiodec.c @@ -18,7 +18,7 @@ * Interplay compressed audio codec by Mike Melanson (melanson@pcisys.net) */ -#include <gst/gst.h> +#include "gstmvedemux.h" static const short delta_table[256] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, diff --git a/gst/mve/mveaudioenc.c b/gst/mve/mveaudioenc.c index e3cf93777..a0e1ef633 100644 --- a/gst/mve/mveaudioenc.c +++ b/gst/mve/mveaudioenc.c @@ -21,7 +21,8 @@ #include <math.h> #include <stdlib.h> -#include <gst/gst.h> + +#include "gstmvemux.h" static const gint32 dec_table[256] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index ce1a1d381..6881a6eb4 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -74,6 +74,7 @@ GST_STATIC_PAD_TEMPLATE ("track_%u", GST_DEBUG_CATEGORY_STATIC (mxfdemux_debug); #define GST_CAT_DEFAULT mxfdemux_debug +GType gst_mxf_demux_pad_get_type (void); G_DEFINE_TYPE (GstMXFDemuxPad, gst_mxf_demux_pad, GST_TYPE_PAD); static void @@ -2007,7 +2008,7 @@ beach: return ret; } -void +static void gst_mxf_demux_pull_random_index_pack (GstMXFDemux * demux) { GstBuffer *buffer; diff --git a/gst/mxf/mxfmpeg.c b/gst/mxf/mxfmpeg.c index 949ba804b..08b1a27b8 100644 --- a/gst/mxf/mxfmpeg.c +++ b/gst/mxf/mxfmpeg.c @@ -1013,7 +1013,7 @@ static MXFEssenceElementWriter mxf_mpeg_audio_essence_element_writer = { "channels = (int) [ 1, 8 ]" /* See ISO/IEC 13818-2 for MPEG ES format */ -gboolean +static gboolean mxf_mpeg_is_mpeg2_frame (GstBuffer * buffer) { GstByteReader reader = GST_BYTE_READER_INIT_FROM_BUFFER (buffer); diff --git a/gst/nsf/nes_apu.c b/gst/nsf/nes_apu.c index 6ba5026ff..b3a9b42af 100644 --- a/gst/nsf/nes_apu.c +++ b/gst/nsf/nes_apu.c @@ -1091,7 +1091,7 @@ apu_reset (void) apu->ext->reset (); } -void +static void apu_build_luts (int num_samples) { int i; diff --git a/gst/nsf/nsf.c b/gst/nsf/nsf.c index 5844b1158..8f1e6186f 100644 --- a/gst/nsf/nsf.c +++ b/gst/nsf/nsf.c @@ -344,7 +344,7 @@ nsf_frame (nsf_t * nsf) } /* Deallocate memory */ -void +static void nes_shutdown (nsf_t * nsf) { int i; diff --git a/gst/qtmux/atoms.c b/gst/qtmux/atoms.c index 99b02eff6..841900d55 100644 --- a/gst/qtmux/atoms.c +++ b/gst/qtmux/atoms.c @@ -341,15 +341,15 @@ atom_edts_clear (AtomEDTS * edts) atom_elst_clear (&edts->elst); } -AtomEDTS * -atom_edts_new () +static AtomEDTS * +atom_edts_new (void) { AtomEDTS *edts = g_new0 (AtomEDTS, 1); atom_edts_init (edts); return edts; } -void +static void atom_edts_free (AtomEDTS * edts) { atom_edts_clear (edts); @@ -3014,7 +3014,7 @@ atom_trak_set_audio_type (AtomTRAK * trak, AtomsContext * context, atom_trak_set_constant_size_samples (trak, sample_size); } -AtomInfo * +static AtomInfo * build_pasp_extension (AtomTRAK * trak, gint par_width, gint par_height) { AtomData *atom_data; @@ -3378,7 +3378,7 @@ build_codec_data_extension (guint32 fourcc, const GstBuffer * codec_data) } AtomInfo * -build_amr_extension () +build_amr_extension (void) { guint8 ext[9]; GstBuffer *buf; @@ -3405,7 +3405,7 @@ build_amr_extension () } AtomInfo * -build_h263_extension () +build_h263_extension (void) { guint8 ext[7]; GstBuffer *buf; diff --git a/gst/qtmux/atoms.h b/gst/qtmux/atoms.h index ae167ba10..85a41d3de 100644 --- a/gst/qtmux/atoms.h +++ b/gst/qtmux/atoms.h @@ -731,8 +731,8 @@ AtomInfo * build_jp2h_extension (AtomTRAK * trak, gint width, gint heig AtomInfo * build_jp2x_extension (const GstBuffer * prefix); AtomInfo * build_fiel_extension (gint fields); -AtomInfo * build_amr_extension (); -AtomInfo * build_h263_extension (); +AtomInfo * build_amr_extension (void); +AtomInfo * build_h263_extension (void); AtomInfo * build_gama_atom (gdouble gamma); AtomInfo * build_SMI_atom (const GstBuffer *seqh); AtomInfo * build_ima_adpcm_extension (gint channels, gint rate, diff --git a/gst/qtmux/atomsrecovery.c b/gst/qtmux/atomsrecovery.c index 907683e43..c9684b1f3 100644 --- a/gst/qtmux/atomsrecovery.c +++ b/gst/qtmux/atomsrecovery.c @@ -794,7 +794,7 @@ moov_recov_parse_buffers (MoovRecovFile * moovrf, MdatRecovFile * mdatrf, return TRUE; } -guint32 +static guint32 trak_recov_data_get_trak_atom_size (TrakRecovData * trak) { AtomSTBL *stbl = &trak->stbl; @@ -832,7 +832,7 @@ fail: return 0; } -guint8 * +static guint8 * moov_recov_get_stbl_children_data (MoovRecovFile * moovrf, TrakRecovData * trak, guint64 * p_size) { diff --git a/gst/qtmux/descriptors.c b/gst/qtmux/descriptors.c index f450fcef6..d1e99c21e 100644 --- a/gst/qtmux/descriptors.c +++ b/gst/qtmux/descriptors.c @@ -206,13 +206,6 @@ desc_es_descriptor_clear (ESDescriptor * es) desc_sl_config_descriptor_clear (&es->sl_conf_desc); } -void -desc_es_descriptor_free (ESDescriptor * es) -{ - desc_es_descriptor_clear (es); - g_free (es); -} - /* * Size handling functions below */ diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c index b9fc10637..f7b48585f 100644 --- a/gst/sdp/gstsdpdemux.c +++ b/gst/sdp/gstsdpdemux.c @@ -315,7 +315,7 @@ find_stream_by_udpsrc (GstSDPStream * stream, gconstpointer a) return -1; } -GstSDPStream * +static GstSDPStream * find_stream (GstSDPDemux * demux, gconstpointer data, gconstpointer func) { GList *lstream; diff --git a/gst/siren/common.c b/gst/siren/common.c index b968c5b4e..3146597de 100644 --- a/gst/siren/common.c +++ b/gst/siren/common.c @@ -65,7 +65,7 @@ static int siren_initialized = 0; #define STEPSIZE 0.3010299957 void -siren_init () +siren_init (void) { int i; float region_power; diff --git a/gst/siren/common.h b/gst/siren/common.h index 36416540c..a231de8af 100644 --- a/gst/siren/common.h +++ b/gst/siren/common.h @@ -100,7 +100,7 @@ extern float step_size_inverse[8]; -extern void siren_init(); +extern void siren_init(void); extern int categorize_regions(int number_of_regions, int number_of_available_bits, int *absolute_region_power_index, int *power_categories, int *category_balance); extern int GetSirenCodecInfo(int flag, int sample_rate, int *number_of_coefs, int *sample_rate_bits, int *rate_control_bits, int *rate_control_possibilities, int *checksum_bits, int *esf_adjustment, int *scale_factor, int *number_of_regions, int *sample_rate_code, int *bits_per_frame ); diff --git a/gst/siren/dct4.c b/gst/siren/dct4.c index 89a5d8a07..db2dfbad6 100644 --- a/gst/siren/dct4.c +++ b/gst/siren/dct4.c @@ -54,7 +54,7 @@ static dct_table_type *dct_tables[8] = { dct_table_5, static int dct4_initialized = 0; void -siren_dct4_init () +siren_dct4_init (void) { int i, j = 0; double scale_320 = (float) sqrt (2.0 / 320); diff --git a/gst/siren/dct4.h b/gst/siren/dct4.h index 6394b1312..5bdd0e07a 100644 --- a/gst/siren/dct4.h +++ b/gst/siren/dct4.h @@ -23,7 +23,7 @@ #ifndef _SIREN7_DCT4_H_ #define _SIREN7_DCT4_H_ -extern void siren_dct4_init(); +extern void siren_dct4_init(void); extern void siren_dct4(float *Source, float *Destination, int dct_length); diff --git a/gst/siren/huffman.c b/gst/siren/huffman.c index b563b43b9..e97da4a2b 100644 --- a/gst/siren/huffman.c +++ b/gst/siren/huffman.c @@ -29,7 +29,7 @@ static int bit_idx = 0; static int *bitstream_ptr = NULL; int -next_bit () +next_bit (void) { if (bitstream_ptr == NULL) return -1; diff --git a/gst/siren/huffman.h b/gst/siren/huffman.h index 196932da8..ea4fab0da 100644 --- a/gst/siren/huffman.h +++ b/gst/siren/huffman.h @@ -30,6 +30,6 @@ extern int decode_envelope(int number_of_regions, float *decoder_standard_deviat extern int decode_vector(SirenDecoder decoder, int number_of_regions, int number_of_available_bits, float *decoder_standard_deviation, int *power_categories, float *coefs, int scale_factor); extern void set_bitstream(int *stream); -extern int next_bit(); +extern int next_bit(void); #endif /* _SIREN7_HUFFMAN_H_ */ diff --git a/gst/siren/rmlt.c b/gst/siren/rmlt.c index acba9b728..df3088c9e 100644 --- a/gst/siren/rmlt.c +++ b/gst/siren/rmlt.c @@ -30,7 +30,7 @@ static float rmlt_window_320[320]; #define PI_2 1.57079632679489661923 void -siren_rmlt_init () +siren_rmlt_init (void) { int i = 0; float angle; diff --git a/gst/siren/rmlt.h b/gst/siren/rmlt.h index a855dd04a..27257cf1d 100644 --- a/gst/siren/rmlt.h +++ b/gst/siren/rmlt.h @@ -23,7 +23,7 @@ #ifndef _SIREN7_RMLT_H_ #define _SIREN7_RMLT_H_ -extern void siren_rmlt_init(); +extern void siren_rmlt_init(void); extern int siren_rmlt_encode_samples(float *samples, float *old_samples, int dct_length, float *rmlt_coefs); extern int siren_rmlt_decode_samples(float *coefs, float *old_coefs, int dct_length, float *samples); diff --git a/gst/tta/gstttadec.c b/gst/tta/gstttadec.c index 7fdea3c2e..31c05e96b 100644 --- a/gst/tta/gstttadec.c +++ b/gst/tta/gstttadec.c @@ -231,7 +231,7 @@ gst_tta_dec_init (GstTtaDec * ttadec) ttadec->tta_buf.buffer_end = ttadec->tta_buf.buffer + TTA_BUFFER_SIZE; } -void +static void rice_init (adapt * rice, unsigned long k0, unsigned long k1) { rice->k0 = k0; @@ -240,7 +240,7 @@ rice_init (adapt * rice, unsigned long k0, unsigned long k1) rice->sum1 = shift_16[k1]; } -void +static void decoder_init (decoder * tta, long nch, long byte_size) { long shift = flt_set[byte_size - 1]; @@ -253,7 +253,7 @@ decoder_init (decoder * tta, long nch, long byte_size) } } -void +static void get_binary (tta_buffer * tta_buf, guchar * buffer, unsigned long buffersize, unsigned long *value, unsigned long bits) { @@ -279,7 +279,7 @@ get_binary (tta_buffer * tta_buf, guchar * buffer, unsigned long buffersize, tta_buf->bit_cache &= bit_mask[tta_buf->bit_count]; } -void +static void get_unary (tta_buffer * tta_buf, guchar * buffer, unsigned long buffersize, unsigned long *value) { diff --git a/gst/videomeasure/gstvideomeasure_ssim.c b/gst/videomeasure/gstvideomeasure_ssim.c index d377b9bd6..515c26159 100644 --- a/gst/videomeasure/gstvideomeasure_ssim.c +++ b/gst/videomeasure/gstvideomeasure_ssim.c @@ -1304,13 +1304,13 @@ gst_ssim_finalize (GObject * object) typedef gfloat (*GstSSimWeightFunc) (GstSSim * ssim, gint y, gint x); -gfloat +static gfloat gst_ssim_weight_func_none (GstSSim * ssim, gint y, gint x) { return 1; } -gfloat +static gfloat gst_ssim_weight_func_gauss (GstSSim * ssim, gint y, gint x) { gfloat coord = sqrt (x * x + y * y); @@ -1318,7 +1318,7 @@ gst_ssim_weight_func_gauss (GstSSim * ssim, gint y, gint x) (ssim->sigma * sqrt (2 * G_PI)); } -gboolean +static gboolean gst_ssim_regenerate_windows (GstSSim * ssim) { gint windowiseven; @@ -1339,16 +1339,16 @@ gst_ssim_regenerate_windows (GstSSim * ssim) switch (ssim->windowtype) { case 0: - func = (GstSSimWeightFunc) gst_ssim_weight_func_none; + func = gst_ssim_weight_func_none; break; case 1: - func = (GstSSimWeightFunc) gst_ssim_weight_func_gauss; + func = gst_ssim_weight_func_gauss; break; default: GST_WARNING_OBJECT (ssim, "unknown window type - %d. Defaulting to %d", ssim->windowtype, 1); ssim->windowtype = 1; - func = (GstSSimWeightFunc) gst_ssim_weight_func_gauss; + func = gst_ssim_weight_func_gauss; } for (y = 0; y < ssim->windowsize; y++) { diff --git a/gst/vmnc/vmncdec.c b/gst/vmnc/vmncdec.c index f2332c7c8..3db3511ee 100644 --- a/gst/vmnc/vmncdec.c +++ b/gst/vmnc/vmncdec.c @@ -149,6 +149,7 @@ GST_STATIC_PAD_TEMPLATE ("sink", "width=(int)[0, max], " "height=(int)[0, max]") ); +GType gst_vmnc_dec_get_type (void); GST_BOILERPLATE (GstVMncDec, gst_vmnc_dec, GstElement, GST_TYPE_ELEMENT); static void vmnc_dec_get_property (GObject * object, guint prop_id, |