fix all compiler warnings

Original commit message from CVS:
fix all compiler warnings
This commit is contained in:
Benjamin Otte 2002-04-04 19:28:23 +00:00
parent ffe760e476
commit 8ae7350492
15 changed files with 33 additions and 28 deletions

View file

@ -236,7 +236,7 @@ gst_autoplugcache_loop (GstElement *element)
if (GST_STATE(cache) != oldstate) { if (GST_STATE(cache) != oldstate) {
gst_object_ref (GST_OBJECT (cache)); gst_object_ref (GST_OBJECT (cache));
GST_DEBUG(GST_CAT_AUTOPLUG, "state changed during signal, aborting"); GST_DEBUG(GST_CAT_AUTOPLUG, "state changed during signal, aborting");
gst_element_yield (cache); gst_element_yield (GST_ELEMENT (cache));
} }
gst_object_unref (GST_OBJECT (cache)); gst_object_unref (GST_OBJECT (cache));
} }

View file

@ -94,9 +94,10 @@ static void gst_autoplugger_external_sink_caps_changed (GstPad *pad, GstCaps *ca
static void gst_autoplugger_external_src_caps_changed (GstPad *pad, GstCaps *caps, GstAutoplugger *autoplugger); static void gst_autoplugger_external_src_caps_changed (GstPad *pad, GstCaps *caps, GstAutoplugger *autoplugger);
static void gst_autoplugger_external_sink_caps_nego_failed (GstPad *pad, gboolean *result, GstAutoplugger *autoplugger); static void gst_autoplugger_external_sink_caps_nego_failed (GstPad *pad, gboolean *result, GstAutoplugger *autoplugger);
static void gst_autoplugger_external_src_caps_nego_failed (GstPad *pad, gboolean *result, GstAutoplugger *autoplugger); static void gst_autoplugger_external_src_caps_nego_failed (GstPad *pad, gboolean *result, GstAutoplugger *autoplugger);
/* defined but not used
static void gst_autoplugger_external_sink_connected (GstPad *pad, GstPad *peerpad, GstAutoplugger *autoplugger); static void gst_autoplugger_external_sink_connected (GstPad *pad, GstPad *peerpad, GstAutoplugger *autoplugger);
static void gst_autoplugger_external_src_connected (GstPad *pad, GstPad *peerpad, GstAutoplugger *autoplugger); static void gst_autoplugger_external_src_connected (GstPad *pad, GstPad *peerpad, GstAutoplugger *autoplugger);
*/
static void gst_autoplugger_cache_first_buffer (GstElement *element,GstBuffer *buf,GstAutoplugger *autoplugger); static void gst_autoplugger_cache_first_buffer (GstElement *element,GstBuffer *buf,GstAutoplugger *autoplugger);
static void gst_autoplugger_cache_empty (GstElement *element, GstAutoplugger *autoplugger); static void gst_autoplugger_cache_empty (GstElement *element, GstAutoplugger *autoplugger);
static void gst_autoplugger_typefind_have_type (GstElement *element, GstCaps *caps, GstAutoplugger *autoplugger); static void gst_autoplugger_typefind_have_type (GstElement *element, GstCaps *caps, GstAutoplugger *autoplugger);
@ -200,16 +201,16 @@ gst_autoplugger_init (GstAutoplugger *autoplugger)
gst_element_add_ghost_pad (GST_ELEMENT(autoplugger), autoplugger->cache_srcpad, "src"); gst_element_add_ghost_pad (GST_ELEMENT(autoplugger), autoplugger->cache_srcpad, "src");
} }
/* defined but not used
G_GNUC_UNUSED static void G_GNUC_UNUSED static void
gst_autoplugger_external_sink_connected(GstPad *pad, GstPad *peerpad, GstAutoplugger *autoplugger) gst_autoplugger_external_sink_connected(GstPad *pad, GstPad *peerpad, GstAutoplugger *autoplugger)
{ {
GstPadTemplate *peertemplate; GstPadTemplate *peertemplate;
GstCaps *peercaps, *peertemplatecaps; GstCaps *peercaps, *peertemplatecaps;
GST_INFO(GST_CAT_AUTOPLUG, "have cache:sink connected"); GST_INFO(GST_CAT_AUTOPLUG, "have cache:sink connected");*/
/* autoplugger->sinkpadpeer = peerpad; */ /* autoplugger->sinkpadpeer = peerpad; */
/*
if (autoplugger->sinkpadpeer) { if (autoplugger->sinkpadpeer) {
peercaps = GST_PAD_CAPS(autoplugger->sinkpadpeer); peercaps = GST_PAD_CAPS(autoplugger->sinkpadpeer);
if (peercaps) if (peercaps)
@ -232,9 +233,9 @@ gst_autoplugger_external_src_connected(GstPad *pad, GstPad *peerpad, GstAutoplug
GstPadTemplate *peertemplate; GstPadTemplate *peertemplate;
GstCaps *peercaps, *peertemplatecaps; GstCaps *peercaps, *peertemplatecaps;
GST_INFO(GST_CAT_AUTOPLUG, "have cache:src connected"); GST_INFO(GST_CAT_AUTOPLUG, "have cache:src connected");*/
/* autoplugger->srcpadpeer = peerpad; */ /* autoplugger->srcpadpeer = peerpad; */
/*
if (autoplugger->srcpadpeer) { if (autoplugger->srcpadpeer) {
peercaps = GST_PAD_CAPS(autoplugger->srcpadpeer); peercaps = GST_PAD_CAPS(autoplugger->srcpadpeer);
if (peercaps) if (peercaps)
@ -246,13 +247,13 @@ gst_autoplugger_external_src_connected(GstPad *pad, GstPad *peerpad, GstAutoplug
if (peertemplatecaps) { if (peertemplatecaps) {
GST_INFO(GST_CAT_AUTOPLUG, "there are some caps on this pad's peer's padtemplate %s", GST_INFO(GST_CAT_AUTOPLUG, "there are some caps on this pad's peer's padtemplate %s",
gst_caps_get_mime(peertemplatecaps)); gst_caps_get_mime(peertemplatecaps));
autoplugger->sinktemplatecaps = peertemplatecaps; autoplugger->sinktemplatecaps = peertemplatecaps;*/
/* GST_DEBUG(GST_CAT_AUTOPLUG, "turning on caps nego proxying in cache"); */ /* GST_DEBUG(GST_CAT_AUTOPLUG, "turning on caps nego proxying in cache"); */
/* gtk_object_set(G_OBJECT(autoplugger->cache),"caps_proxy",TRUE,NULL);*/ /* gtk_object_set(G_OBJECT(autoplugger->cache),"caps_proxy",TRUE,NULL);*/
} /* }
} }
} }
} }*/
static void static void

View file

@ -126,17 +126,17 @@ gst_spider_identity_class_init (GstSpiderIdentityClass *klass)
gstelement_class->change_state = GST_DEBUG_FUNCPTR(gst_spider_identity_change_state); gstelement_class->change_state = GST_DEBUG_FUNCPTR(gst_spider_identity_change_state);
gstelement_class->request_new_pad = GST_DEBUG_FUNCPTR(gst_spider_identity_request_new_pad); gstelement_class->request_new_pad = GST_DEBUG_FUNCPTR(gst_spider_identity_request_new_pad);
} }
/* defined but not used
static GstBufferPool* static GstBufferPool*
gst_spider_identity_get_bufferpool (GstPad *pad) gst_spider_identity_get_bufferpool (GstPad *pad)
{ {*/
/* fix me */ /* fix me */
GstSpiderIdentity *spider_identity; /* GstSpiderIdentity *spider_identity;
spider_identity = GST_SPIDER_IDENTITY (gst_pad_get_parent (pad)); spider_identity = GST_SPIDER_IDENTITY (gst_pad_get_parent (pad));
return gst_pad_get_bufferpool (spider_identity->src); return gst_pad_get_bufferpool (spider_identity->src);
} }*/
static void static void
gst_spider_identity_init (GstSpiderIdentity *ident) gst_spider_identity_init (GstSpiderIdentity *ident)
@ -188,7 +188,7 @@ gst_spider_identity_chain (GstPad *pad, GstBuffer *buf)
if (conn->sink == ident && (GstElement *) conn->src != conn->current) if (conn->sink == ident && (GstElement *) conn->src != conn->current)
{ {
gst_element_set_eos (GST_ELEMENT (conn->src)); gst_element_set_eos (GST_ELEMENT (conn->src));
gst_pad_push (conn->src->src, gst_event_new (GST_EVENT_EOS)); gst_pad_push (conn->src->src, GST_BUFFER (gst_event_new (GST_EVENT_EOS)));
} }
} }
} }

View file

@ -127,7 +127,7 @@ int main(int argc,char *argv[])
exit (-4); exit (-4);
} }
gst_bin_use_clock (GST_BIN (bin), gst_system_clock_obtain ()); /* gst_bin_use_clock (GST_BIN (bin), gst_system_clock_obtain ());*/
/* start playing */ /* start playing */
gst_element_set_state(bin, GST_STATE_PLAYING); gst_element_set_state(bin, GST_STATE_PLAYING);

View file

@ -423,6 +423,7 @@ gst_clock_notify_async (GstClock *clock, GstClockTime interval,
GstClockCallback func, gpointer user_data) GstClockCallback func, gpointer user_data)
{ {
g_warning ("not supported"); g_warning ("not supported");
return NULL;
} }
/** /**

View file

@ -23,6 +23,7 @@
#include "gst/gstinfo.h" #include "gst/gstinfo.h"
#include "gst/gstevent.h" #include "gst/gstevent.h"
#include <string.h> /* memcpy */
GType _gst_event_type; GType _gst_event_type;

View file

@ -114,9 +114,9 @@ static void gst_fast_scheduler_pad_disconnect (GstScheduler *sched, GstPad
static GstPad* gst_fast_scheduler_pad_select (GstScheduler *sched, GList *padlist); static GstPad* gst_fast_scheduler_pad_select (GstScheduler *sched, GList *padlist);
static GstSchedulerState static GstSchedulerState
gst_fast_scheduler_iterate (GstScheduler *sched); gst_fast_scheduler_iterate (GstScheduler *sched);
/* defined but not used
static void gst_fast_scheduler_show (GstScheduler *sched); static void gst_fast_scheduler_show (GstScheduler *sched);
*/
static GstSchedulerClass *parent_class = NULL; static GstSchedulerClass *parent_class = NULL;
static GType static GType
@ -283,7 +283,6 @@ gst_fast_scheduler_getfunc_proxy (GstPad *pad)
static gboolean static gboolean
gst_fast_scheduler_cothreaded_element (GstBin * bin, GstElement *element) gst_fast_scheduler_cothreaded_element (GstBin * bin, GstElement *element)
{ {
GList *elements;
cothread_func wrapper_function; cothread_func wrapper_function;
GList *pads; GList *pads;
@ -636,9 +635,7 @@ static void
gst_fast_scheduler_reset (GstScheduler *sched) gst_fast_scheduler_reset (GstScheduler *sched)
{ {
cothread_context *ctx; cothread_context *ctx;
GstBin *bin = GST_BIN (GST_SCHEDULER_PARENT (sched));
GList *elements = GST_FAST_SCHEDULER_CAST (sched)->elements; GList *elements = GST_FAST_SCHEDULER_CAST (sched)->elements;
GstFastScheduler *bsched = GST_FAST_SCHEDULER (sched);
while (elements) { while (elements) {
GST_ELEMENT_THREADSTATE (elements->data) = NULL; GST_ELEMENT_THREADSTATE (elements->data) = NULL;
@ -858,7 +855,6 @@ gst_fast_scheduler_pad_connect (GstScheduler * sched, GstPad *srcpad, GstPad *si
static void static void
gst_fast_scheduler_pad_disconnect (GstScheduler * sched, GstPad * srcpad, GstPad * sinkpad) gst_fast_scheduler_pad_disconnect (GstScheduler * sched, GstPad * srcpad, GstPad * sinkpad)
{ {
GstSchedulerChain *chain;
GstElement *element1, *element2; GstElement *element1, *element2;
GstSchedulerChain *chain1, *chain2; GstSchedulerChain *chain1, *chain2;
GstFastScheduler *bsched = GST_FAST_SCHEDULER (sched); GstFastScheduler *bsched = GST_FAST_SCHEDULER (sched);
@ -905,7 +901,6 @@ static GstPad *
gst_fast_scheduler_pad_select (GstScheduler * sched, GList * padlist) gst_fast_scheduler_pad_select (GstScheduler * sched, GList * padlist)
{ {
GstPad *pad = NULL; GstPad *pad = NULL;
GList *padlist2 = padlist;
GST_INFO (GST_CAT_SCHEDULING, "imlement me!!"); GST_INFO (GST_CAT_SCHEDULING, "imlement me!!");
@ -918,8 +913,6 @@ gst_fast_scheduler_iterate (GstScheduler * sched)
GstBin *bin = GST_BIN (sched->parent); GstBin *bin = GST_BIN (sched->parent);
GList *chains; GList *chains;
GstSchedulerChain *chain; GstSchedulerChain *chain;
GstElement *entry;
GList *elements;
gint scheduled = 0; gint scheduled = 0;
GstFastScheduler *bsched = GST_FAST_SCHEDULER (sched); GstFastScheduler *bsched = GST_FAST_SCHEDULER (sched);
GstSchedulerState state; GstSchedulerState state;
@ -1039,7 +1032,7 @@ exit:
return state; return state;
} }
/* defined but not used
static void static void
gst_fast_scheduler_show (GstScheduler * sched) gst_fast_scheduler_show (GstScheduler * sched)
{ {
@ -1093,3 +1086,4 @@ gst_fast_scheduler_show (GstScheduler * sched)
g_print ("\n"); g_print ("\n");
} }
} }
*/

View file

@ -215,6 +215,8 @@ gst_identity_loop (GstElement *element)
} }
exit(1); exit(1);
/* implicit declaration of function `GST_ELEMENT_IS_COTHREAD_STOPPING' */
#define GST_ELEMENT_IS_COTHREAD_STOPPING(element) GST_FLAG_IS_SET((element), GST_ELEMENT_SCHEDULER_PRIVATE1)
} while (!GST_ELEMENT_IS_COTHREAD_STOPPING(element)); } while (!GST_ELEMENT_IS_COTHREAD_STOPPING(element));
/**/ /**/
} }

View file

@ -1,4 +1,5 @@
#include "gstmempool.h" #include "gstmempool.h"
#include <string.h> /* memset */
#ifdef __SMP__ #ifdef __SMP__
#define POOL_LOCK "lock ; " #define POOL_LOCK "lock ; "

View file

@ -1,4 +1,5 @@
#include "gstbuffer.h" #include "gstbuffer.h"
#include <gst/gst.h>
int int
main (int argc, char *argv[]) main (int argc, char *argv[])

View file

@ -1,5 +1,6 @@
#include <gst/gst.h> #include <gst/gst.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
/* FIXME: WTF does this do? */ /* FIXME: WTF does this do? */

View file

@ -1,4 +1,5 @@
#include <gst/gst.h> #include <gst/gst.h>
#include <string.h> /* strerror */
#define MAX_THREADS 100 #define MAX_THREADS 100

View file

@ -1,4 +1,5 @@
#include "gstmemchunk.h" #include "gstmemchunk.h"
#include <string.h> /* memset */
#ifdef __SMP__ #ifdef __SMP__
#define CHUNK_LOCK "lock ; " #define CHUNK_LOCK "lock ; "

View file

@ -1,5 +1,6 @@
#include <gst/gst.h> #include <gst/gst.h>
#include "gstmemchunk.h" #include "gstmemchunk.h"
#include <string.h> /* strerror */
#define MAX_THREADS 100 #define MAX_THREADS 100

View file

@ -165,9 +165,9 @@ main(int argc, char *argv[])
argvn = g_new0 (char *,argc); argvn = g_new0 (char *,argc);
memcpy (argvn, argv+1, sizeof (char*) * (argc-1)); memcpy (argvn, argv+1, sizeof (char*) * (argc-1));
if (strstr (argv[0], "gst-xmllaunch")) { if (strstr (argv[0], "gst-xmllaunch")) {
pipeline = xmllaunch_parse_cmdline (argvn); pipeline = xmllaunch_parse_cmdline ((const gchar **) argvn);
} else { } else {
pipeline = (GstElement*) gst_parse_launchv (argvn); pipeline = (GstElement*) gst_parse_launchv ((const gchar **) argvn);
} }
if (!pipeline) { if (!pipeline) {