Add -Wmissing-declarations -Wmissing-prototypes to warning flags

Includes all the fixes necessary to make stuff compile again.
This commit is contained in:
Benjamin Otte 2010-03-11 13:32:14 +01:00
parent 86a6b39b2c
commit 43b1683421
39 changed files with 178 additions and 129 deletions

View 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)

View 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

View file

@ -23,11 +23,9 @@
#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)

31
ext/ogg/gstogg.h Normal file
View file

@ -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__ */

View 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",

View 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

View file

@ -170,6 +170,7 @@ struct _GstOggDemuxClass
GstElementClass parent_class;
};
gboolean gst_ogg_demux_plugin_init (GstPlugin * plugin);
G_END_DECLS

View 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);

View 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__ */

View 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 =

View file

@ -24,9 +24,11 @@
#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]);

View 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

View 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

30
ext/ogg/vorbis_parse.h Normal file
View file

@ -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__ */

View file

@ -105,6 +105,8 @@ struct _GstTheoraDecClass
GstElementClass parent_class;
};
GType gst_theora_dec_get_type (void);
G_END_DECLS
#endif /* __GST_THEORADEC_H__ */

View file

@ -110,6 +110,8 @@ struct _GstTheoraEncClass
GstElementClass parent_class;
};
GType gst_theora_enc_get_type (void);
G_END_DECLS
#endif /* __GST_THEORAENC_H__ */

View 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

View file

@ -32,6 +32,8 @@
#include <gst/gst.h>
#include "riff-read.h"
GST_DEBUG_CATEGORY (riff_debug);
/**

View 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)
{

View 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)
{

View file

@ -44,9 +44,11 @@
#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 */

View file

@ -1,7 +1,6 @@
plugin_LTLIBRARIES = libgstffmpegcolorspace.la
libgstffmpegcolorspace_la_SOURCES = \
gstffmpeg.c \
gstffmpegcolorspace.c \
gstffmpegcodecmap.c \
dsputil.c \

View 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/")

View 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__ */

View 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__ */

View 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))

View file

@ -27,14 +27,12 @@
#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)
{

View 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
@ -17,32 +17,15 @@
* 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"
gboolean gst_decode_bin_plugin_init (GstPlugin * plugin);
gboolean gst_play_bin_plugin_init (GstPlugin * plugin);
gboolean gst_play_bin2_plugin_init (GstPlugin * plugin);
extern gboolean gst_ffmpegcolorspace_register (GstPlugin * plugin);
static gboolean
plugin_init (GstPlugin * plugin)
{
avcodec_init ();
gst_ffmpegcolorspace_register (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__ */

View file

@ -230,6 +230,7 @@
#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

View file

@ -229,6 +229,7 @@
#include "gstplay-enum.h"
#include "gstplay-marshal.h"
#include "gstplayback.h"
#include "gstplaysink.h"
#include "gstfactorylists.h"
#include "gstinputselector.h"

View 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);

View 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__ */

View 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));

View 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 \

View 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)
{

View 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);

View 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);

View 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,

View 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)
{