Add -Wmissing-declarations -Wmissing-prototypes to warning flags
authorBenjamin Otte <otte@redhat.com>
Thu, 11 Mar 2010 12:32:14 +0000 (13:32 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 11 Mar 2010 12:50:31 +0000 (13:50 +0100)
Includes all the fixes necessary to make stuff compile again.

39 files changed:
configure.ac
ext/ogg/Makefile.am
ext/ogg/gstogg.c
ext/ogg/gstogg.h [new file with mode: 0644]
ext/ogg/gstoggaviparse.c
ext/ogg/gstoggdemux.c
ext/ogg/gstoggdemux.h
ext/ogg/gstoggmux.c
ext/ogg/gstoggmux.h
ext/ogg/gstoggparse.c
ext/ogg/gstoggstream.c
ext/ogg/gstogmparse.c
ext/ogg/vorbis_parse.c
ext/ogg/vorbis_parse.h [new file with mode: 0644]
ext/theora/gsttheoradec.h
ext/theora/gsttheoraenc.h
gst-libs/gst/audio/audio.c
gst-libs/gst/riff/riff.c
gst-libs/gst/rtsp/gstrtspbase64.c
gst-libs/gst/rtsp/gstrtspconnection.c
gst-libs/gst/tag/lang.c
gst/ffmpegcolorspace/Makefile.am
gst/ffmpegcolorspace/gstffmpegcolorspace.c
gst/gdp/gstgdpdepay.h
gst/gdp/gstgdppay.h
gst/playback/gstdecodebin2.c
gst/playback/gstplayback.c
gst/playback/gstplayback.h [moved from gst/ffmpegcolorspace/gstffmpeg.c with 51% similarity]
gst/playback/gstplaybin.c
gst/playback/gstplaybin2.c
gst/playback/gsturidecodebin.c
gst/videorate/gstvideorate.h
tests/check/elements/appsink.c
tests/check/elements/audiorate.c
tests/check/elements/audioresample.c
tests/check/libs/cddabasesrc.c
tests/check/libs/mixer.c
tests/check/libs/navigation.c
tests/examples/gio/giosrc-mounting.c

index 78db208..897e3c6 100644 (file)
@@ -308,10 +308,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)
index 2d15233..1a7f319 100644 (file)
@@ -11,7 +11,8 @@ libgstogg_la_SOURCES = \
        gstoggstream.h \
        dirac_parse.c \
        dirac_parse.h \
-       vorbis_parse.c
+       vorbis_parse.c \
+       vorbis_parse.h
 
 noinst_HEADERS = \
        gstoggdemux.h gstoggmux.h
index d525aaa..d1f16b8 100644 (file)
 
 #include <gst/gst.h>
 
-extern gboolean gst_ogg_demux_plugin_init (GstPlugin * plugin);
-extern gboolean gst_ogg_mux_plugin_init (GstPlugin * plugin);
-extern gboolean gst_ogm_parse_plugin_init (GstPlugin * plugin);
-extern gboolean gst_ogg_parse_plugin_init (GstPlugin * plugin);
-extern gboolean gst_ogg_avi_parse_plugin_init (GstPlugin * plugin);
+#include "gstogg.h"
+#include "gstoggdemux.h"
+#include "gstoggmux.h"
 
 static gboolean
 plugin_init (GstPlugin * plugin)
diff --git a/ext/ogg/gstogg.h b/ext/ogg/gstogg.h
new file mode 100644 (file)
index 0000000..6f1393c
--- /dev/null
@@ -0,0 +1,31 @@
+/* GStreamer
+ * Copyright (C) 2004 Wim Taymans <wim@fluendo.com>
+ *
+ * gstoggdemux.c: ogg stream demuxer
+ *
+ * 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_OGG_H__
+#define __GST_OGG_H__
+
+#include <gst/gst.h>
+
+gboolean gst_ogm_parse_plugin_init (GstPlugin * plugin);
+gboolean gst_ogg_parse_plugin_init (GstPlugin * plugin);
+gboolean gst_ogg_avi_parse_plugin_init (GstPlugin * plugin);
+
+#endif /* __GST_OGG_H__ */
index 4b51e01..4dab7da 100644 (file)
@@ -37,6 +37,8 @@
 #include <ogg/ogg.h>
 #include <string.h>
 
+#include "gstogg.h"
+
 static const GstElementDetails gst_ogg_avi_parse_details =
 GST_ELEMENT_DETAILS ("Ogg AVI parser",
     "Codec/Parser",
index d8f00ef..07ce75f 100644 (file)
@@ -132,6 +132,7 @@ static GstFlowReturn gst_ogg_demux_combine_flows (GstOggDemux * ogg,
     GstOggPad * pad, GstFlowReturn ret);
 static void gst_ogg_demux_sync_streams (GstOggDemux * ogg);
 
+GType gst_ogg_pad_get_type (void);
 G_DEFINE_TYPE (GstOggPad, gst_ogg_pad, GST_TYPE_PAD);
 
 static void
index a47642b..1c69b41 100644 (file)
@@ -170,6 +170,7 @@ struct _GstOggDemuxClass
   GstElementClass parent_class;
 };
 
+gboolean gst_ogg_demux_plugin_init (GstPlugin * plugin);
 
 G_END_DECLS
 
index 6c81d8b..f242020 100644 (file)
@@ -282,7 +282,7 @@ gst_ogg_mux_finalize (GObject * object)
 static void
 gst_ogg_mux_ogg_pad_destroy_notify (GstCollectData * data)
 {
-  GstOggPad *oggpad = (GstOggPad *) data;
+  GstOggPadData *oggpad = (GstOggPadData *) data;
   GstBuffer *buf;
 
   ogg_stream_clear (&oggpad->stream);
@@ -314,7 +314,7 @@ static gboolean
 gst_ogg_mux_sink_event (GstPad * pad, GstEvent * event)
 {
   GstOggMux *ogg_mux = GST_OGG_MUX (gst_pad_get_parent (pad));
-  GstOggPad *ogg_pad = (GstOggPad *) gst_pad_get_element_private (pad);
+  GstOggPadData *ogg_pad = (GstOggPadData *) gst_pad_get_element_private (pad);
   gboolean ret;
 
   GST_DEBUG ("Got %s event on pad %s:%s", GST_EVENT_TYPE_NAME (event),
@@ -380,11 +380,11 @@ gst_ogg_mux_request_new_pad (GstElement * element,
     /* construct our own wrapper data structure for the pad to
      * keep track of its status */
     {
-      GstOggPad *oggpad;
+      GstOggPadData *oggpad;
 
-      oggpad = (GstOggPad *)
+      oggpad = (GstOggPadData *)
           gst_collect_pads_add_pad_full (ogg_mux->collect, newpad,
-          sizeof (GstOggPad), gst_ogg_mux_ogg_pad_destroy_notify);
+          sizeof (GstOggPadData), gst_ogg_mux_ogg_pad_destroy_notify);
       ogg_mux->active_pads++;
 
       oggpad->serial = serial;
@@ -516,7 +516,7 @@ static gboolean
 gst_ogg_mux_dequeue_page (GstOggMux * mux, GstFlowReturn * flowret)
 {
   GSList *walk;
-  GstOggPad *opad = NULL;       /* "oldest" pad */
+  GstOggPadData *opad = NULL;   /* "oldest" pad */
   GstClockTime oldest = GST_CLOCK_TIME_NONE;
   GstBuffer *buf = NULL;
   gboolean ret = FALSE;
@@ -525,7 +525,7 @@ gst_ogg_mux_dequeue_page (GstOggMux * mux, GstFlowReturn * flowret)
 
   walk = mux->collect->data;
   while (walk) {
-    GstOggPad *pad = (GstOggPad *) walk->data;
+    GstOggPadData *pad = (GstOggPadData *) walk->data;
 
     /* We need each queue to either be at EOS, or have one or more pages
      * available with a set granulepos (i.e. not -1), otherwise we don't have
@@ -566,7 +566,7 @@ gst_ogg_mux_dequeue_page (GstOggMux * mux, GstFlowReturn * flowret)
 
   walk = mux->collect->data;
   while (walk) {
-    GstOggPad *pad = (GstOggPad *) walk->data;
+    GstOggPadData *pad = (GstOggPadData *) walk->data;
 
     /* any page with a granulepos of -1 can be pushed immediately.
      * TODO: it CAN be, but it seems silly to do so? */
@@ -629,8 +629,8 @@ gst_ogg_mux_dequeue_page (GstOggMux * mux, GstFlowReturn * flowret)
  * counting.
  */
 static GstFlowReturn
-gst_ogg_mux_pad_queue_page (GstOggMux * mux, GstOggPad * pad, ogg_page * page,
-    gboolean delta)
+gst_ogg_mux_pad_queue_page (GstOggMux * mux, GstOggPadData * pad,
+    ogg_page * page, gboolean delta)
 {
   GstFlowReturn ret;
   GstBuffer *buffer = gst_ogg_mux_buffer_from_page (mux, page, delta);
@@ -671,8 +671,8 @@ gst_ogg_mux_pad_queue_page (GstOggMux * mux, GstOggPad * pad, ogg_page * page,
  * of muxed pages
  */
 static gint
-gst_ogg_mux_compare_pads (GstOggMux * ogg_mux, GstOggPad * first,
-    GstOggPad * second)
+gst_ogg_mux_compare_pads (GstOggMux * ogg_mux, GstOggPadData * first,
+    GstOggPadData * second)
 {
   guint64 firsttime, secondtime;
 
@@ -731,20 +731,20 @@ gst_ogg_mux_compare_pads (GstOggMux * ogg_mux, GstOggPad * first,
  * NULL when no pad was usable. "best" means the buffer marked
  * with the lowest timestamp. If best->buffer == NULL then nothing
  * should be done until more data arrives */
-static GstOggPad *
+static GstOggPadData *
 gst_ogg_mux_queue_pads (GstOggMux * ogg_mux)
 {
-  GstOggPad *bestpad = NULL, *still_hungry = NULL;
+  GstOggPadData *bestpad = NULL, *still_hungry = NULL;
   GSList *walk;
 
   /* try to make sure we have a buffer from each usable pad first */
   walk = ogg_mux->collect->data;
   while (walk) {
-    GstOggPad *pad;
+    GstOggPadData *pad;
     GstCollectData *data;
 
     data = (GstCollectData *) walk->data;
-    pad = (GstOggPad *) data;
+    pad = (GstOggPadData *) data;
 
     walk = g_slist_next (walk);
 
@@ -840,7 +840,7 @@ gst_ogg_mux_queue_pads (GstOggMux * ogg_mux)
 }
 
 static GList *
-gst_ogg_mux_get_headers (GstOggPad * pad)
+gst_ogg_mux_get_headers (GstOggPadData * pad)
 {
   GList *res = NULL;
   GstStructure *structure;
@@ -957,10 +957,10 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
 
   walk = mux->collect->data;
   while (walk) {
-    GstOggPad *pad;
+    GstOggPadData *pad;
     GstPad *thepad;
 
-    pad = (GstOggPad *) walk->data;
+    pad = (GstOggPadData *) walk->data;
     thepad = pad->collect.pad;
 
     walk = g_slist_next (walk);
@@ -978,7 +978,7 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
   GST_LOG_OBJECT (mux, "creating BOS pages");
   walk = mux->collect->data;
   while (walk) {
-    GstOggPad *pad;
+    GstOggPadData *pad;
     GstBuffer *buf;
     ogg_packet packet;
     ogg_page page;
@@ -987,7 +987,7 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
     GstStructure *structure;
     GstBuffer *hbuf;
 
-    pad = (GstOggPad *) walk->data;
+    pad = (GstOggPadData *) walk->data;
     thepad = pad->collect.pad;
     caps = gst_pad_get_negotiated_caps (thepad);
     structure = gst_caps_get_structure (caps, 0);
@@ -1063,10 +1063,10 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
   GST_LOG_OBJECT (mux, "creating next headers");
   walk = mux->collect->data;
   while (walk) {
-    GstOggPad *pad;
+    GstOggPadData *pad;
     GstPad *thepad;
 
-    pad = (GstOggPad *) walk->data;
+    pad = (GstOggPadData *) walk->data;
     thepad = pad->collect.pad;
 
     walk = walk->next;
@@ -1168,7 +1168,7 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
  *    pads are at EOS)
  */
 static GstFlowReturn
-gst_ogg_mux_process_best_pad (GstOggMux * ogg_mux, GstOggPad * best)
+gst_ogg_mux_process_best_pad (GstOggMux * ogg_mux, GstOggPadData * best)
 {
   GstFlowReturn ret = GST_FLOW_OK;
   gboolean delta_unit;
@@ -1191,7 +1191,7 @@ gst_ogg_mux_process_best_pad (GstOggMux * ogg_mux, GstOggPad * best)
    * for the pad we were pulling from before */
   if (ogg_mux->pulling && best &&
       ogg_mux->pulling != best && ogg_mux->pulling->buffer) {
-    GstOggPad *pad = ogg_mux->pulling;
+    GstOggPadData *pad = ogg_mux->pulling;
 
     GstClockTime last_ts = GST_BUFFER_END_TIME (pad->buffer);
 
@@ -1249,7 +1249,7 @@ gst_ogg_mux_process_best_pad (GstOggMux * ogg_mux, GstOggPad * best)
     ogg_packet packet;
     ogg_page page;
     GstBuffer *buf, *tmpbuf;
-    GstOggPad *pad = ogg_mux->pulling;
+    GstOggPadData *pad = ogg_mux->pulling;
     gint64 duration;
     gboolean force_flush;
 
@@ -1497,7 +1497,7 @@ beach:
 static GstFlowReturn
 gst_ogg_mux_collected (GstCollectPads * pads, GstOggMux * ogg_mux)
 {
-  GstOggPad *best;
+  GstOggPadData *best;
   GstFlowReturn ret;
   gint activebefore;
 
@@ -1593,7 +1593,7 @@ gst_ogg_mux_init_collectpads (GstCollectPads * collect)
 
   walk = collect->data;
   while (walk) {
-    GstOggPad *oggpad = (GstOggPad *) walk->data;
+    GstOggPadData *oggpad = (GstOggPadData *) walk->data;
 
     ogg_stream_init (&oggpad->stream, oggpad->serial);
     oggpad->packetno = 0;
@@ -1617,7 +1617,7 @@ gst_ogg_mux_clear_collectpads (GstCollectPads * collect)
   GSList *walk;
 
   for (walk = collect->data; walk; walk = g_slist_next (walk)) {
-    GstOggPad *oggpad = (GstOggPad *) walk->data;
+    GstOggPadData *oggpad = (GstOggPadData *) walk->data;
     GstBuffer *buf;
 
     ogg_stream_clear (&oggpad->stream);
index fc0944f..6134d5e 100644 (file)
@@ -24,6 +24,7 @@
 #include <ogg/ogg.h>
 
 #include <gst/gst.h>
+#include <gst/base/gstcollectpads.h>
 
 G_BEGIN_DECLS
 
@@ -82,7 +83,7 @@ typedef struct
 
   gboolean always_flush_page;
 }
-GstOggPad;
+GstOggPadData;
 
 /**
  * GstOggMux:
@@ -103,7 +104,7 @@ struct _GstOggMux
   gint active_pads;
 
   /* the pad we are currently using to fill a page */
-  GstOggPad *pulling;
+  GstOggPadData *pulling;
 
   /* next timestamp for the page */
   GstClockTime next_ts;
@@ -120,7 +121,7 @@ struct _GstOggMux
   guint64 max_delay;
   guint64 max_page_delay;
 
-  GstOggPad *delta_pad;         /* when a delta frame is detected on a stream, we mark
+  GstOggPadData *delta_pad;     /* when a delta frame is detected on a stream, we mark
                                    pages as delta frames up to the page that has the
                                    keyframe */
 
@@ -133,6 +134,8 @@ struct _GstOggMuxClass
 
 GType gst_ogg_mux_get_type (void);
 
+gboolean gst_ogg_mux_plugin_init (GstPlugin * plugin);
+
 G_END_DECLS
 
 #endif /* __GST_OGG_MUX_H__ */
index a86958b..66071bd 100644 (file)
@@ -36,6 +36,7 @@
 #include <ogg/ogg.h>
 #include <string.h>
 
+#include "gstogg.h"
 #include "gstoggstream.h"
 
 static const GstElementDetails gst_ogg_parse_details =
index 391337c..66192cc 100644 (file)
 
 #include "gstoggstream.h"
 #include "dirac_parse.h"
+#include "vorbis_parse.h"
 
 #include <gst/riff/riff-media.h>
 
+#include <stdlib.h>
 #include <string.h>
 
 GST_DEBUG_CATEGORY_EXTERN (gst_ogg_demux_debug);
@@ -165,6 +167,7 @@ gst_ogg_stream_granule_to_granulepos (GstOggStream * pad, gint64 granule,
       keyframe_granule);
 }
 
+#if 0
 gboolean
 gst_ogg_stream_packet_granulepos_is_key_frame (GstOggStream * pad,
     gint64 granulepos)
@@ -180,6 +183,7 @@ gst_ogg_stream_packet_granulepos_is_key_frame (GstOggStream * pad,
 
   return mappers[pad->map].is_key_frame_func (pad, granulepos);
 }
+#endif
 
 gboolean
 gst_ogg_stream_packet_is_header (GstOggStream * pad, ogg_packet * packet)
@@ -459,10 +463,6 @@ granule_to_granulepos_dirac (GstOggStream * pad, gint64 granule,
 
 /* vorbis */
 
-void parse_vorbis_header_packet (GstOggStream * pad, ogg_packet * op);
-void parse_vorbis_setup_packet (GstOggStream * pad, ogg_packet * op);
-
-
 static gboolean
 setup_vorbis_mapper (GstOggStream * pad, ogg_packet * packet)
 {
@@ -708,49 +708,6 @@ setup_fishead_mapper (GstOggStream * pad, ogg_packet * packet)
   return TRUE;
 }
 
-gboolean
-gst_ogg_map_add_fisbone (GstOggStream * pad,
-    const guint8 * data, guint size, GstClockTime * p_start_time,
-    guint32 * p_preroll)
-{
-  GstClockTime start_time;
-  gint64 start_granule;
-  guint32 preroll;
-
-  if (size < SKELETON_FISBONE_MIN_SIZE || memcmp (data, "fisbone\0", 8) != 0) {
-    GST_WARNING ("invalid fisbone packet, ignoring");
-    return FALSE;
-  }
-
-  if (pad->have_fisbone) {
-    GST_DEBUG ("already have fisbone, ignoring second one");
-    return FALSE;
-  }
-
-  /* skip "fisbone\0" + headers offset + serialno + num headers */
-  data += 8 + 4 + 4 + 4;
-
-  pad->have_fisbone = TRUE;
-
-  /* we just overwrite whatever was set before by the format-specific setup */
-  pad->granulerate_n = GST_READ_UINT64_LE (data);
-  pad->granulerate_d = GST_READ_UINT64_LE (data + 8);
-
-  start_granule = GST_READ_UINT64_LE (data + 16);
-  preroll = GST_READ_UINT32_LE (data + 24);
-  pad->granuleshift = GST_READ_UINT8 (data + 28);
-
-  start_time = granulepos_to_granule_default (pad, start_granule);
-
-  if (p_start_time)
-    *p_start_time = start_time;
-
-  if (p_preroll)
-    *p_preroll = preroll;
-
-  return TRUE;
-}
-
 /* Do we need these for something?
  * ogm->hdr.size = GST_READ_UINT32_LE (&data[13]);
  * ogm->hdr.time_unit = GST_READ_UINT64_LE (&data[17]);
index 31dcd90..b79b5e6 100644 (file)
@@ -30,6 +30,8 @@
 #include <gst/riff/riff-media.h>
 #include <gst/riff/riff-read.h>
 
+#include "gstogg.h"
+
 GST_DEBUG_CATEGORY_STATIC (gst_ogm_parse_debug);
 #define GST_CAT_DEFAULT gst_ogm_parse_debug
 
index f9ba746..844f18b 100644 (file)
@@ -45,6 +45,7 @@
 #include <string.h>
 
 #include "gstoggstream.h"
+#include "vorbis_parse.h"
 
 /*
  * Vorbis packets can be short or long, and each packet overlaps the previous
diff --git a/ext/ogg/vorbis_parse.h b/ext/ogg/vorbis_parse.h
new file mode 100644 (file)
index 0000000..9a8781b
--- /dev/null
@@ -0,0 +1,30 @@
+/* GStreamer
+ * Copyright (C) 2004 Wim Taymans <wim@fluendo.com>
+ *
+ * gstoggdemux.c: ogg stream demuxer
+ *
+ * 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_VORBIS_PARSE_H__
+#define __GST_VORBIS_PARSE_H__
+
+#include <gst/gst.h>
+
+void parse_vorbis_header_packet (GstOggStream * pad, ogg_packet * packet);
+void parse_vorbis_setup_packet (GstOggStream * pad, ogg_packet * op);
+
+#endif /* __GST_VORBIS_PARSE_H__ */
index 14f806c..6e9b138 100644 (file)
@@ -105,6 +105,8 @@ struct _GstTheoraDecClass
   GstElementClass parent_class;
 };
 
+GType gst_theora_dec_get_type (void);
+
 G_END_DECLS
 
 #endif /* __GST_THEORADEC_H__ */
index 3efdab2..b6ab95e 100644 (file)
@@ -110,6 +110,8 @@ struct _GstTheoraEncClass
   GstElementClass parent_class;
 };
 
+GType gst_theora_enc_get_type (void);
+
 G_END_DECLS
 
 #endif /* __GST_THEORAENC_H__ */
index 86b8885..bf99a52 100644 (file)
@@ -237,6 +237,8 @@ typedef enum
   GST_AUDIO_FIELD_DEPTH = (1 << 4),
   GST_AUDIO_FIELD_SIGNED = (1 << 5),
 } GstAudioFieldFlag;
+void
+gst_audio_structure_set_int (GstStructure * structure, GstAudioFieldFlag flag);
 #endif /* GST_DISABLE_DEPRECATED */
 
 void
index a8e267c..d14b32a 100644 (file)
@@ -32,6 +32,8 @@
 
 #include <gst/gst.h>
 
+#include "riff-read.h"
+
 GST_DEBUG_CATEGORY (riff_debug);
 
 /**
index 9aca1e0..b96e2d7 100644 (file)
@@ -46,6 +46,9 @@
  */
 /* This isn't efficient, but it doesn't need to be */
 #ifndef GST_REMOVE_DEPRECATED
+#ifdef GST_DISABLE_DEPRECATED
+gchar *gst_rtsp_base64_encode (const gchar * data, gsize len);
+#endif
 gchar *
 gst_rtsp_base64_encode (const gchar * data, gsize len)
 {
index c03680c..c45f639 100644 (file)
@@ -3505,6 +3505,11 @@ gst_rtsp_watch_send_message (GstRTSPWatch * watch, GstRTSPMessage * message,
  * Since: 0.10.24
  */
 #ifndef GST_REMOVE_DEPRECATED
+#ifdef GST_DISABLE_DEPRECATED
+guint
+gst_rtsp_watch_queue_data (GstRTSPWatch * watch, const guint8 * data,
+    guint size);
+#endif
 guint
 gst_rtsp_watch_queue_data (GstRTSPWatch * watch, const guint8 * data,
     guint size)
@@ -3560,6 +3565,10 @@ gst_rtsp_watch_queue_data (GstRTSPWatch * watch, const guint8 * data,
  * Since: 0.10.23
  */
 #ifndef GST_REMOVE_DEPRECATED
+#ifdef GST_DISABLE_DEPRECATED
+guint
+gst_rtsp_watch_queue_message (GstRTSPWatch * watch, GstRTSPMessage * message);
+#endif
 guint
 gst_rtsp_watch_queue_message (GstRTSPWatch * watch, GstRTSPMessage * message)
 {
index dc212ef..eb5c036 100644 (file)
 
 #include <gst/gst-i18n-plugin.h>
 #include <gst/gst.h>
+
 #include <string.h>
 #include <stdlib.h>
 
+#include "tag.h"
 #include "lang-tables.dat"
 
 /* FIXME: remove once we depend on GLib >= 2.22 */
index 2893fc4..053b423 100644 (file)
@@ -1,7 +1,6 @@
 plugin_LTLIBRARIES = libgstffmpegcolorspace.la
 
 libgstffmpegcolorspace_la_SOURCES = \
-       gstffmpeg.c \
        gstffmpegcolorspace.c \
        gstffmpegcodecmap.c \
        dsputil.c \
index 714b01f..3d49f7f 100644 (file)
@@ -547,8 +547,8 @@ not_supported:
   }
 }
 
-gboolean
-gst_ffmpegcolorspace_register (GstPlugin * plugin)
+static gboolean
+plugin_init (GstPlugin * plugin)
 {
   GstCaps *caps;
 
@@ -556,6 +556,8 @@ gst_ffmpegcolorspace_register (GstPlugin * plugin)
       "FFMPEG-based colorspace converter");
   GST_DEBUG_CATEGORY_GET (ffmpegcolorspace_performance, "GST_PERFORMANCE");
 
+  avcodec_init ();
+
   /* template caps */
   caps = gst_ffmpegcsp_codectype_to_caps (CODEC_TYPE_VIDEO, NULL);
 
@@ -569,3 +571,9 @@ gst_ffmpegcolorspace_register (GstPlugin * plugin)
   return gst_element_register (plugin, "ffmpegcolorspace",
       GST_RANK_NONE, GST_TYPE_FFMPEGCSP);
 }
+
+GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
+    GST_VERSION_MINOR,
+    "ffmpegcolorspace",
+    "colorspace conversion copied from FFMpeg " FFMPEG_VERSION,
+    plugin_init, VERSION, "LGPL", "FFMpeg", "http://ffmpeg.sourceforge.net/")
index f1f41ac..64b7db2 100644 (file)
@@ -75,6 +75,8 @@ struct _GstGDPDepayClass
 
 gboolean gst_gdp_depay_plugin_init (GstPlugin * plugin);
 
+GType gst_gdp_depay_get_type (void);
+
 G_END_DECLS
 
 #endif /* __GST_GDP_DEPAY_H__ */
index 0cc360e..3e280b5 100644 (file)
@@ -74,6 +74,8 @@ struct _GstGDPPayClass
 
 gboolean gst_gdp_pay_plugin_init (GstPlugin * plugin);
 
+GType gst_gdp_pay_get_type (void);
+
 G_END_DECLS
 
 #endif /* __GST_GDP_PAY_H__ */
index d05c698..fcefecd 100644 (file)
@@ -89,6 +89,7 @@
 
 #include "gstplay-marshal.h"
 #include "gstplay-enum.h"
+#include "gstplayback.h"
 #include "gstfactorylists.h"
 #include "gstrawcaps.h"
 
@@ -465,6 +466,7 @@ struct _GstDecodePad
   gboolean drained;             /* an EOS has been seen on the pad */
 };
 
+GType gst_decode_pad_get_type (void);
 G_DEFINE_TYPE (GstDecodePad, gst_decode_pad, GST_TYPE_GHOST_PAD);
 #define GST_TYPE_DECODE_PAD (gst_decode_pad_get_type ())
 #define GST_DECODE_PAD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DECODE_PAD,GstDecodePad))
index a4db424..a83fee1 100644 (file)
 #include <gst/gst-i18n-plugin.h>
 #include <gst/pbutils/pbutils.h>
 
+#include "gstplayback.h"
+#include "gstplaysink.h"
 #include "gststreamselector.h"
 #include "gststreaminfo.h"
-#include "gstplaysink.h"
 #include "gstsubtitleoverlay.h"
 
-gboolean gst_play_bin_plugin_init (GstPlugin * plugin);
-gboolean gst_play_bin2_plugin_init (GstPlugin * plugin);
-
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
similarity index 51%
rename from gst/ffmpegcolorspace/gstffmpeg.c
rename to gst/playback/gstplayback.h
index a8d9e03..e50705d 100644 (file)
@@ -1,5 +1,5 @@
 /* GStreamer
- * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
+ * Copyright (C) <2007> Wim Taymans <wim.taymans@gmail.com>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
  * Boston, MA 02111-1307, USA.
  */
 
-/* First, include the header file for the plugin, to bring in the
- * object definition and other useful things.
- */
+#ifndef __GST_PLAY_BACK_H__
+#define __GST_PLAY_BACK_H__
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
 
 #include <gst/gst.h>
 
-#include "avcodec.h"
-
-extern gboolean gst_ffmpegcolorspace_register (GstPlugin * plugin);
-
-static gboolean
-plugin_init (GstPlugin * plugin)
-{
-  avcodec_init ();
-  gst_ffmpegcolorspace_register (plugin);
+gboolean gst_decode_bin_plugin_init (GstPlugin * plugin);
+gboolean gst_play_bin_plugin_init (GstPlugin * plugin);
+gboolean gst_play_bin2_plugin_init (GstPlugin * plugin);
 
-  /* Now we can return the pointer to the newly created Plugin object. */
-  return TRUE;
-}
 
-GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
-    GST_VERSION_MINOR,
-    "ffmpegcolorspace",
-    "colorspace conversion copied from FFMpeg " FFMPEG_VERSION,
-    plugin_init, VERSION, "LGPL", "FFMpeg", "http://ffmpeg.sourceforge.net/")
+#endif /* __GST_PLAY_SINK_H__ */
index 8d8ae29..f044c61 100644 (file)
 #include <gst/pbutils/pbutils.h>
 
 #include "gstplaybasebin.h"
+#include "gstplayback.h"
 
 GST_DEBUG_CATEGORY_STATIC (gst_play_bin_debug);
 #define GST_CAT_DEFAULT gst_play_bin_debug
index f76a30e..5cf4d91 100644 (file)
 
 #include "gstplay-enum.h"
 #include "gstplay-marshal.h"
+#include "gstplayback.h"
 #include "gstplaysink.h"
 #include "gstfactorylists.h"
 #include "gstinputselector.h"
index 09f24af..b19459b 100644 (file)
@@ -179,6 +179,7 @@ enum
 
 static guint gst_uri_decode_bin_signals[LAST_SIGNAL] = { 0 };
 
+GType gst_uri_decode_bin_get_type (void);
 GST_BOILERPLATE (GstURIDecodeBin, gst_uri_decode_bin, GstBin, GST_TYPE_BIN);
 
 static void remove_decoders (GstURIDecodeBin * bin, gboolean force);
index a1a5007..4d6c061 100644 (file)
@@ -74,6 +74,8 @@ struct _GstVideoRateClass
   GstElementClass parent_class;
 };
 
+GType gst_video_rate_get_type (void);
+
 G_END_DECLS
 
 #endif /* __GST_VIDEO_RATE_H__ */
index f8bc68d..b91d9a7 100644 (file)
@@ -56,18 +56,12 @@ cleanup_appsink (GstElement * appsink)
  * The exact operation performed doesn't matter. Currently it multiplies with
  * two, but it could do anything. The idea is to use the function to verify
  * that the code calling it gets run. */
-gint
+static gint
 operate_on_data (gint indata)
 {
   return indata * 2;
 }
 
-void
-notify_test_function (gpointer userdata)
-{
-  global_testdata = operate_on_data (GPOINTER_TO_INT (userdata));
-}
-
 static GstFlowReturn
 callback_function (GstAppSink * appsink, gpointer callback_data)
 {
@@ -76,7 +70,7 @@ callback_function (GstAppSink * appsink, gpointer callback_data)
   return GST_FLOW_OK;
 }
 
-void
+static void
 notify_function (gpointer callback_data)
 {
   global_testdata = operate_on_data (*((gint *) callback_data));
index 75654dd..7845672 100644 (file)
@@ -30,6 +30,7 @@ static gdouble injector_inject_probability = 0.0;
 typedef GstElement TestInjector;
 typedef GstElementClass TestInjectorClass;
 
+GType test_injector_get_type (void);
 GST_BOILERPLATE (TestInjector, test_injector, GstElement, GST_TYPE_ELEMENT);
 
 #define INJECTOR_CAPS \
index 4a67a9e..a9a2e3b 100644 (file)
@@ -761,7 +761,7 @@ typedef struct
   guint64 in_buffer_count, out_buffer_count;
 } TimestampDriftCtx;
 
-void
+static void
 fakesink_handoff_cb (GstElement * object, GstBuffer * buffer, GstPad * pad,
     gpointer user_data)
 {
@@ -816,7 +816,7 @@ fakesink_handoff_cb (GstElement * object, GstBuffer * buffer, GstPad * pad,
   ctx->next_out_off = GST_BUFFER_OFFSET_END (buffer);
 }
 
-void
+static void
 identity_handoff_cb (GstElement * object, GstBuffer * buffer,
     gpointer user_data)
 {
index 33685d8..abe7c2c 100644 (file)
@@ -182,6 +182,7 @@ struct _GstCdFooSrcClass
   GstCddaBaseSrcClass parent_class;
 };
 
+GType gst_cd_foo_src_get_type (void);
 GST_BOILERPLATE (GstCdFooSrc, gst_cd_foo_src, GstCddaBaseSrc,
     GST_TYPE_CDDA_BASE_SRC);
 
index 1133ecb..2dfd284 100644 (file)
@@ -45,6 +45,8 @@ struct TestElementClass
   GstElementClass parent_class;
 };
 
+GType test_element_get_type (void);
+
 static void init_interface (GType type);
 static void gst_implements_interface_init (GstImplementsInterfaceClass * klass);
 
index 4712947..e3928d1 100644 (file)
@@ -51,6 +51,8 @@ struct TestElementClass
   GstElementClass parent_class;
 };
 
+GType test_element_get_type (void);
+
 static void init_interface (GType type);
 static void gst_implements_interface_init (GstImplementsInterfaceClass * klass);
 static void nav_send_event (GstNavigation * navigation,
index b6d4731..8ca4a3c 100644 (file)
@@ -45,7 +45,7 @@ mount_cb (GObject * obj, GAsyncResult * res, gpointer user_data)
   }
 }
 
-gboolean
+static gboolean
 message_handler (GstBus * bus, GstMessage * message, gpointer user_data)
 {