Commit 62be9170 authored by Benjamin Otte's avatar Benjamin Otte Committed by Tim-Philipp Müller

Add -Wmissing-declarations -Wmissing-prototypes to configure flags

And fix all warnings
parent af347a95
......@@ -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;
......
......@@ -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,
......
......@@ -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)
{
......
......@@ -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
*/
......
......@@ -56,7 +56,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)
{
......@@ -86,7 +86,7 @@ setup_src_pad (GstElement * element,
return srcpad;
}
void
static void
teardown_src_pad (GstPad * srcpad)
{
GstPad *sinkpad;
......@@ -110,7 +110,7 @@ teardown_src_pad (GstPad * srcpad)
gst_object_unref (srcpad);
}
GstElement *
static GstElement *
setup_qtmux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
{
GstElement *qtmux;
......@@ -125,7 +125,7 @@ setup_qtmux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
return qtmux;
}
void
static void
cleanup_qtmux (GstElement * qtmux, gchar * sinkname)
{
GST_DEBUG ("cleanup_qtmux");
......@@ -138,7 +138,7 @@ cleanup_qtmux (GstElement * qtmux, gchar * sinkname)
gst_check_teardown_element (qtmux);
}
void
static void
check_qtmux_pad (GstStaticPadTemplate * srctemplate, gchar * sinkname)
{
GstElement *qtmux;
......@@ -232,7 +232,7 @@ GST_START_TEST (test_audio_pad)
GST_END_TEST;
Suite *
static Suite *
qtmux_suite (void)
{
Suite *s = suite_create ("qtmux");
......
......@@ -275,7 +275,7 @@ GST_START_TEST (test_geo_location_tags)
GST_END_TEST;
Suite *
static Suite *
metadata_suite (void)
{
Suite *s = suite_create ("tagschecking");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment