debugging and cleanups

Original commit message from CVS:
debugging and cleanups
This commit is contained in:
Thomas Vander Stichele 2004-07-07 14:15:28 +00:00
parent 73f74ccb58
commit d4ac2d54be
4 changed files with 30 additions and 22 deletions

View file

@ -1,3 +1,10 @@
2004-07-07 Thomas Vander Stichele <thomas (at) apestaart (dot) org>
* gst/autoplug/gstspideridentity.c: (gst_spider_identity_chain):
* gst/gstbuffer.h:
* gst/gstpad.c:
cleanups and debugging
2004-07-07 Ronald Bultje <rbultje@ronald.bitfreak.net>
* configure.ac:

View file

@ -173,10 +173,9 @@ gst_spider_identity_chain (GstPad * pad, GstBuffer * buf)
{
GstSpiderIdentity *ident;
/*g_print ("chaining on pad %s:%s with buffer %p\n", GST_DEBUG_PAD_NAME (pad), buf); */
g_return_if_fail (pad != NULL);
g_return_if_fail (GST_IS_PAD (pad));
if (buf == NULL)
return;
@ -209,8 +208,10 @@ gst_spider_identity_chain (GstPad * pad, GstBuffer * buf)
}
if ((ident->src != NULL) && (GST_PAD_PEER (ident->src) != NULL)) {
/* g_print("pushing buffer %p (refcount %d - buffersize %d) to pad %s:%s\n", buf, GST_BUFFER_REFCOUNT (buf), GST_BUFFER_SIZE (buf), GST_DEBUG_PAD_NAME (ident->src)); */
GST_LOG ("push %p %" G_GINT64_FORMAT, buf, GST_BUFFER_OFFSET (buf));
GST_LOG_OBJECT (ident, "pushing buffer %p "
"(refcount %d, size %u, offset %" G_GINT64_FORMAT ") ",
buf, GST_BUFFER_REFCOUNT_VALUE (buf),
GST_BUFFER_SIZE (buf), GST_BUFFER_OFFSET (buf));
gst_pad_push (ident->src, GST_DATA (buf));
} else if (GST_IS_BUFFER (buf)) {
gst_buffer_unref (buf);

View file

@ -39,8 +39,8 @@ GST_DEBUG_CATEGORY_STATIC (debug_dataflow);
GST_CAT_DEBUG_OBJECT (debug_dataflow, obj, "%s event %p (type %d)", notice, data, \
GST_EVENT_TYPE (data)); \
} else { \
GST_CAT_LOG_OBJECT (debug_dataflow, obj, "%s buffer %p (size %d)", notice, data, \
GST_BUFFER_SIZE (data)); \
GST_CAT_LOG_OBJECT (debug_dataflow, obj, "%s buffer %p (size %u, refcount %d)", notice, data, \
GST_BUFFER_SIZE (data), GST_BUFFER_REFCOUNT_VALUE (data)); \
} \
}G_STMT_END
#define GST_CAT_DEFAULT GST_CAT_PADS