libs/gst/base/gstcollectpads.c: Use the name of the pads instead of a pointer, helps in debugging.

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.
This commit is contained in:
Edward Hervey 2009-01-03 18:39:38 +00:00
parent ab1921ffc3
commit 8d18476d94
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
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> 2009-01-03 Edward Hervey <edward.hervey@collabora.co.uk>
* gst/gstindex.c: (gst_index_get_type): * gst/gstindex.c: (gst_index_get_type):

View file

@ -768,19 +768,20 @@ gst_collect_pads_available (GstCollectPads * pads)
/* ignore pad with EOS */ /* ignore pad with EOS */
if (G_UNLIKELY (pdata->abidata.ABI.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; continue;
} }
/* an empty buffer without EOS is weird when we get here.. */ /* an empty buffer without EOS is weird when we get here.. */
if (G_UNLIKELY ((buffer = pdata->buffer) == NULL)) { 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; goto not_filled;
} }
/* this is the size left of the buffer */ /* this is the size left of the buffer */
size = GST_BUFFER_SIZE (buffer) - pdata->pos; 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 */ /* need to return the min of all available data */
if (size < result) if (size < result)