Fixed some warnings.

Original commit message from CVS:
Fixed some warnings.
This commit is contained in:
Wim Taymans 2001-06-01 18:30:40 +00:00
parent 42ebe8b588
commit 3c18e42b39
7 changed files with 7 additions and 38 deletions

View file

@ -63,7 +63,6 @@ void have_type(GstElement *element, GstCaps *caps, GstCaps **private_caps) {
int main (int argc,char *argv[]) {
GstCaps *caps;
int i;
gst_init(&argc,&argv);

View file

@ -242,6 +242,8 @@ gst_autoplug_caps_find_cost (gpointer src, gpointer dest, gpointer data)
}
else {
res = gst_autoplug_can_match ((GstElementFactory *)src, (GstElementFactory *)dest);
//GST_INFO (GST_CAT_AUTOPLUG_ATTEMPT,"factory %s to factory %s %d",
// ((GstElementFactory *)src)->name, ((GstElementFactory *)dest)->name, res);
}
if (res)

View file

@ -671,7 +671,7 @@ gst_bin_iterate (GstBin *bin)
}
/* out internal element fired EOS, we decrement the number of pending EOS childs */
static void
G_GNUC_UNUSED static void
gst_bin_received_eos (GstElement *element, GstBin *bin)
{
GST_INFO_ELEMENT (GST_CAT_PLANNING, bin, "child %s fired eos, pending %d", GST_ELEMENT_NAME (element),

View file

@ -1304,7 +1304,7 @@ gst_pad_renegotiate (GstPad *pad)
GST_DEBUG (GST_CAT_NEGOTIATION, "pads aggreed on caps :)\n");
newcaps = GST_PAD_CAPS (pad);
g_return_val_if_fail(newcaps != NULL, FALSE); // FIXME is this valid?
//g_return_val_if_fail(newcaps != NULL, FALSE); // FIXME is this valid?
/* here we have some sort of aggreement of the caps */
GST_PAD_CAPS (currentpad) = gst_caps_ref (newcaps);

View file

@ -198,9 +198,6 @@ gst_queue_handle_negotiate_src (GstPad *pad, GstCaps **caps, gpointer *data)
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
return gst_pad_negotiate_proxy (pad, queue->sinkpad, caps);
//return GST_PAD_NEGOTIATE_FAIL;
}
static GstPadNegotiateReturn
@ -210,19 +207,7 @@ gst_queue_handle_negotiate_sink (GstPad *pad, GstCaps **caps, gpointer *data)
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
/*
if (counter == 0) {
*caps = NULL;
return GST_PAD_NEGOTIATE_TRY;
}
if (*caps) {
*/
return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
/*
}
return GST_PAD_NEGOTIATE_FAIL;
*/
}
static gboolean
@ -271,7 +256,6 @@ static void
gst_queue_chain (GstPad *pad, GstBuffer *buf)
{
GstQueue *queue;
gboolean tosignal = FALSE;
const guchar *name;
g_return_if_fail (pad != NULL);

View file

@ -314,7 +314,7 @@ gst_schedule_cothreaded_chain (GstBin *bin, GstScheduleChain *chain) {
}
}
static void
G_GNUC_UNUSED static void
gst_schedule_chained_chain (GstBin *bin, _GstBinChain *chain) {
GList *elements;
GstElement *element;

View file

@ -198,9 +198,6 @@ gst_queue_handle_negotiate_src (GstPad *pad, GstCaps **caps, gpointer *data)
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
return gst_pad_negotiate_proxy (pad, queue->sinkpad, caps);
//return GST_PAD_NEGOTIATE_FAIL;
}
static GstPadNegotiateReturn
@ -210,19 +207,7 @@ gst_queue_handle_negotiate_sink (GstPad *pad, GstCaps **caps, gpointer *data)
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
/*
if (counter == 0) {
*caps = NULL;
return GST_PAD_NEGOTIATE_TRY;
}
if (*caps) {
*/
return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
/*
}
return GST_PAD_NEGOTIATE_FAIL;
*/
}
static gboolean
@ -271,7 +256,6 @@ static void
gst_queue_chain (GstPad *pad, GstBuffer *buf)
{
GstQueue *queue;
gboolean tosignal = FALSE;
const guchar *name;
g_return_if_fail (pad != NULL);