mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
fix all compiler warnings
Original commit message from CVS: fix all compiler warnings
This commit is contained in:
parent
ffe760e476
commit
8ae7350492
15 changed files with 33 additions and 28 deletions
|
@ -236,7 +236,7 @@ gst_autoplugcache_loop (GstElement *element)
|
|||
if (GST_STATE(cache) != oldstate) {
|
||||
gst_object_ref (GST_OBJECT (cache));
|
||||
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));
|
||||
}
|
||||
|
|
|
@ -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_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);
|
||||
/* defined but not used
|
||||
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_cache_first_buffer (GstElement *element,GstBuffer *buf,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);
|
||||
|
@ -200,16 +201,16 @@ gst_autoplugger_init (GstAutoplugger *autoplugger)
|
|||
gst_element_add_ghost_pad (GST_ELEMENT(autoplugger), autoplugger->cache_srcpad, "src");
|
||||
}
|
||||
|
||||
|
||||
/* defined but not used
|
||||
G_GNUC_UNUSED static void
|
||||
gst_autoplugger_external_sink_connected(GstPad *pad, GstPad *peerpad, GstAutoplugger *autoplugger)
|
||||
{
|
||||
GstPadTemplate *peertemplate;
|
||||
GstCaps *peercaps, *peertemplatecaps;
|
||||
|
||||
GST_INFO(GST_CAT_AUTOPLUG, "have cache:sink connected");
|
||||
GST_INFO(GST_CAT_AUTOPLUG, "have cache:sink connected");*/
|
||||
/* autoplugger->sinkpadpeer = peerpad; */
|
||||
|
||||
/*
|
||||
if (autoplugger->sinkpadpeer) {
|
||||
peercaps = GST_PAD_CAPS(autoplugger->sinkpadpeer);
|
||||
if (peercaps)
|
||||
|
@ -232,9 +233,9 @@ gst_autoplugger_external_src_connected(GstPad *pad, GstPad *peerpad, GstAutoplug
|
|||
GstPadTemplate *peertemplate;
|
||||
GstCaps *peercaps, *peertemplatecaps;
|
||||
|
||||
GST_INFO(GST_CAT_AUTOPLUG, "have cache:src connected");
|
||||
GST_INFO(GST_CAT_AUTOPLUG, "have cache:src connected");*/
|
||||
/* autoplugger->srcpadpeer = peerpad; */
|
||||
|
||||
/*
|
||||
if (autoplugger->srcpadpeer) {
|
||||
peercaps = GST_PAD_CAPS(autoplugger->srcpadpeer);
|
||||
if (peercaps)
|
||||
|
@ -246,13 +247,13 @@ gst_autoplugger_external_src_connected(GstPad *pad, GstPad *peerpad, GstAutoplug
|
|||
if (peertemplatecaps) {
|
||||
GST_INFO(GST_CAT_AUTOPLUG, "there are some caps on this pad's peer's padtemplate %s",
|
||||
gst_caps_get_mime(peertemplatecaps));
|
||||
autoplugger->sinktemplatecaps = peertemplatecaps;
|
||||
autoplugger->sinktemplatecaps = peertemplatecaps;*/
|
||||
/* GST_DEBUG(GST_CAT_AUTOPLUG, "turning on caps nego proxying in cache"); */
|
||||
/* gtk_object_set(G_OBJECT(autoplugger->cache),"caps_proxy",TRUE,NULL);*/
|
||||
}
|
||||
/* }
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
static void
|
||||
|
|
|
@ -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->request_new_pad = GST_DEBUG_FUNCPTR(gst_spider_identity_request_new_pad);
|
||||
}
|
||||
|
||||
/* defined but not used
|
||||
static GstBufferPool*
|
||||
gst_spider_identity_get_bufferpool (GstPad *pad)
|
||||
{
|
||||
{*/
|
||||
/* fix me */
|
||||
GstSpiderIdentity *spider_identity;
|
||||
/* GstSpiderIdentity *spider_identity;
|
||||
|
||||
spider_identity = GST_SPIDER_IDENTITY (gst_pad_get_parent (pad));
|
||||
|
||||
return gst_pad_get_bufferpool (spider_identity->src);
|
||||
}
|
||||
}*/
|
||||
|
||||
static void
|
||||
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)
|
||||
{
|
||||
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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@ int main(int argc,char *argv[])
|
|||
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 */
|
||||
gst_element_set_state(bin, GST_STATE_PLAYING);
|
||||
|
|
|
@ -423,6 +423,7 @@ gst_clock_notify_async (GstClock *clock, GstClockTime interval,
|
|||
GstClockCallback func, gpointer user_data)
|
||||
{
|
||||
g_warning ("not supported");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "gst/gstinfo.h"
|
||||
#include "gst/gstevent.h"
|
||||
#include <string.h> /* memcpy */
|
||||
|
||||
GType _gst_event_type;
|
||||
|
||||
|
|
|
@ -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 GstSchedulerState
|
||||
gst_fast_scheduler_iterate (GstScheduler *sched);
|
||||
|
||||
/* defined but not used
|
||||
static void gst_fast_scheduler_show (GstScheduler *sched);
|
||||
|
||||
*/
|
||||
static GstSchedulerClass *parent_class = NULL;
|
||||
|
||||
static GType
|
||||
|
@ -283,7 +283,6 @@ gst_fast_scheduler_getfunc_proxy (GstPad *pad)
|
|||
static gboolean
|
||||
gst_fast_scheduler_cothreaded_element (GstBin * bin, GstElement *element)
|
||||
{
|
||||
GList *elements;
|
||||
cothread_func wrapper_function;
|
||||
GList *pads;
|
||||
|
||||
|
@ -636,9 +635,7 @@ static void
|
|||
gst_fast_scheduler_reset (GstScheduler *sched)
|
||||
{
|
||||
cothread_context *ctx;
|
||||
GstBin *bin = GST_BIN (GST_SCHEDULER_PARENT (sched));
|
||||
GList *elements = GST_FAST_SCHEDULER_CAST (sched)->elements;
|
||||
GstFastScheduler *bsched = GST_FAST_SCHEDULER (sched);
|
||||
|
||||
while (elements) {
|
||||
GST_ELEMENT_THREADSTATE (elements->data) = NULL;
|
||||
|
@ -858,7 +855,6 @@ gst_fast_scheduler_pad_connect (GstScheduler * sched, GstPad *srcpad, GstPad *si
|
|||
static void
|
||||
gst_fast_scheduler_pad_disconnect (GstScheduler * sched, GstPad * srcpad, GstPad * sinkpad)
|
||||
{
|
||||
GstSchedulerChain *chain;
|
||||
GstElement *element1, *element2;
|
||||
GstSchedulerChain *chain1, *chain2;
|
||||
GstFastScheduler *bsched = GST_FAST_SCHEDULER (sched);
|
||||
|
@ -905,7 +901,6 @@ static GstPad *
|
|||
gst_fast_scheduler_pad_select (GstScheduler * sched, GList * padlist)
|
||||
{
|
||||
GstPad *pad = NULL;
|
||||
GList *padlist2 = padlist;
|
||||
|
||||
GST_INFO (GST_CAT_SCHEDULING, "imlement me!!");
|
||||
|
||||
|
@ -918,8 +913,6 @@ gst_fast_scheduler_iterate (GstScheduler * sched)
|
|||
GstBin *bin = GST_BIN (sched->parent);
|
||||
GList *chains;
|
||||
GstSchedulerChain *chain;
|
||||
GstElement *entry;
|
||||
GList *elements;
|
||||
gint scheduled = 0;
|
||||
GstFastScheduler *bsched = GST_FAST_SCHEDULER (sched);
|
||||
GstSchedulerState state;
|
||||
|
@ -1039,7 +1032,7 @@ exit:
|
|||
return state;
|
||||
}
|
||||
|
||||
|
||||
/* defined but not used
|
||||
static void
|
||||
gst_fast_scheduler_show (GstScheduler * sched)
|
||||
{
|
||||
|
@ -1093,3 +1086,4 @@ gst_fast_scheduler_show (GstScheduler * sched)
|
|||
g_print ("\n");
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
|
|
@ -215,6 +215,8 @@ gst_identity_loop (GstElement *element)
|
|||
}
|
||||
|
||||
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));
|
||||
/**/
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "gstmempool.h"
|
||||
#include <string.h> /* memset */
|
||||
|
||||
#ifdef __SMP__
|
||||
#define POOL_LOCK "lock ; "
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "gstbuffer.h"
|
||||
#include <gst/gst.h>
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include <gst/gst.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* FIXME: WTF does this do? */
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <gst/gst.h>
|
||||
#include <string.h> /* strerror */
|
||||
|
||||
#define MAX_THREADS 100
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "gstmemchunk.h"
|
||||
#include <string.h> /* memset */
|
||||
|
||||
#ifdef __SMP__
|
||||
#define CHUNK_LOCK "lock ; "
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include <gst/gst.h>
|
||||
#include "gstmemchunk.h"
|
||||
#include <string.h> /* strerror */
|
||||
|
||||
#define MAX_THREADS 100
|
||||
|
||||
|
|
|
@ -165,9 +165,9 @@ main(int argc, char *argv[])
|
|||
argvn = g_new0 (char *,argc);
|
||||
memcpy (argvn, argv+1, sizeof (char*) * (argc-1));
|
||||
if (strstr (argv[0], "gst-xmllaunch")) {
|
||||
pipeline = xmllaunch_parse_cmdline (argvn);
|
||||
pipeline = xmllaunch_parse_cmdline ((const gchar **) argvn);
|
||||
} else {
|
||||
pipeline = (GstElement*) gst_parse_launchv (argvn);
|
||||
pipeline = (GstElement*) gst_parse_launchv ((const gchar **) argvn);
|
||||
}
|
||||
|
||||
if (!pipeline) {
|
||||
|
|
Loading…
Reference in a new issue