Fixed some warnings.
authorWim Taymans <wim.taymans@gmail.com>
Fri, 1 Jun 2001 18:30:40 +0000 (18:30 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 1 Jun 2001 18:30:40 +0000 (18:30 +0000)
Original commit message from CVS:
Fixed some warnings.

gst/autoplug/autoplugtest.c
gst/autoplug/gststaticautoplugrender.c
gst/gstbin.c
gst/gstpad.c
gst/gstqueue.c
gst/gstscheduler.c
plugins/elements/gstqueue.c

index 748175f..a3c60d1 100644 (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);
 
index cbfc798..05bbea7 100644 (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)
index 1a61097..d2747a0 100644 (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),
index c3e1ce7..0fff580 100644 (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);
index 755c8f8..944b9de 100644 (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;
-  */
+  return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
 }
 
 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);
index 44392d9..9a3e3f1 100644 (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;
index 755c8f8..944b9de 100644 (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;
-  */
+  return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
 }
 
 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);