libs/gst/base/gstcollectpads.c: Use the name of the pads instead of a pointer, helps...
authorEdward Hervey <bilboed@bilboed.com>
Sat, 3 Jan 2009 18:39:38 +0000 (18:39 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 3 Jan 2009 18:39:38 +0000 (18:39 +0000)
Original commit message from CVS:
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_available):
Use the name of the pads instead of a pointer, helps in debugging.

ChangeLog
libs/gst/base/gstcollectpads.c

index 1296950..dc800b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-01-03  Edward Hervey  <edward.hervey@collabora.co.uk>
 
+       * libs/gst/base/gstcollectpads.c: (gst_collect_pads_available):
+       Use the name of the pads instead of a pointer, helps in debugging.
+
+2009-01-03  Edward Hervey  <edward.hervey@collabora.co.uk>
+
        * gst/gstindex.c: (gst_index_get_type):
        Add a debugging category for GstIndex, first little step in making
        indexing top-notch.
index 5a93055..a024abc 100644 (file)
@@ -768,19 +768,20 @@ gst_collect_pads_available (GstCollectPads * pads)
 
     /* ignore pad with EOS */
     if (G_UNLIKELY (pdata->abidata.ABI.eos)) {
-      GST_DEBUG ("pad %p is EOS", pdata);
+      GST_DEBUG ("pad %s:%s is EOS", GST_DEBUG_PAD_NAME (pdata->pad));
       continue;
     }
 
     /* an empty buffer without EOS is weird when we get here.. */
     if (G_UNLIKELY ((buffer = pdata->buffer) == NULL)) {
-      GST_WARNING ("pad %p has no buffer", pdata);
+      GST_WARNING ("pad %s:%s has no buffer", GST_DEBUG_PAD_NAME (pdata->pad));
       goto not_filled;
     }
 
     /* this is the size left of the buffer */
     size = GST_BUFFER_SIZE (buffer) - pdata->pos;
-    GST_DEBUG ("pad %p has %d bytes left", pdata, size);
+    GST_DEBUG ("pad %s:%s has %d bytes left",
+        GST_DEBUG_PAD_NAME (pdata->pad), size);
 
     /* need to return the min of all available data */
     if (size < result)