diff --git a/ChangeLog b/ChangeLog index 1296950551..dc800b6980 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-03 Edward Hervey + + * 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 * gst/gstindex.c: (gst_index_get_type): diff --git a/libs/gst/base/gstcollectpads.c b/libs/gst/base/gstcollectpads.c index 5a930558aa..a024abc335 100644 --- a/libs/gst/base/gstcollectpads.c +++ b/libs/gst/base/gstcollectpads.c @@ -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)